Commit d4c0c47e authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Implement TypedSymbol.is_nonnegative

parent 19f6e4a4
Pipeline #16941 passed with stage
in 3 minutes and 14 seconds
......@@ -143,6 +143,13 @@ class TypedSymbol(sp.Symbol):
return super().is_positive
def is_nonnegative(self):
if self.is_negative is False:
return True
return super().is_nonnegative
def is_real(self):
if hasattr(self.dtype, 'numpy_dtype'):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment