Skip to content
Snippets Groups Projects
Commit d4c0c47e authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Implement TypedSymbol.is_nonnegative

parent 19f6e4a4
Branches
Tags
No related merge requests found
......@@ -143,6 +143,13 @@ class TypedSymbol(sp.Symbol):
return super().is_positive
@property
def is_nonnegative(self):
if self.is_negative is False:
return True
else:
return super().is_nonnegative
@property
def is_real(self):
if hasattr(self.dtype, 'numpy_dtype'):
......
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