Skip to content
Snippets Groups Projects

Bugfix: TypedSymbol.is_negative should not be implemented in terms of super().is_positive

Merged Stephan Seitz requested to merge seitz/pystencils:bug-is-negative into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -141,7 +141,7 @@ class TypedSymbol(sp.Symbol):
if np.issubdtype(self.dtype.numpy_dtype, np.unsignedinteger):
return False
return super().is_positive
return super().is_negative
@property
def is_nonnegative(self):
Loading