Set assumptions for TypedSymbol/cast_func/IntegerFunctionTwoArgsMixIn the SymPy way
Compare changes
+ 32
− 47
@@ -40,6 +40,35 @@ def matrix_symbols(names, dtype, rows, cols):
@@ -40,6 +40,35 @@ def matrix_symbols(names, dtype, rows, cols):
@@ -87,6 +116,7 @@ class cast_func(sp.Function):
@@ -87,6 +116,7 @@ class cast_func(sp.Function):
@@ -184,7 +214,8 @@ class TypedSymbol(sp.Symbol):
@@ -184,7 +214,8 @@ class TypedSymbol(sp.Symbol):
@@ -205,52 +236,6 @@ class TypedSymbol(sp.Symbol):
@@ -205,52 +236,6 @@ class TypedSymbol(sp.Symbol):
# For reference: Numpy type hierarchy https://docs.scipy.org/doc/numpy-1.13.0/reference/arrays.scalars.html
For reference: Numpy type hierarchy https://docs.scipy.org/doc/numpy-1.13.0/reference/arrays.scalars.html