WIP: Revamp the type system
Compare changes
+ 19
− 19
@@ -11,9 +11,9 @@ from sympy.logic.boolalg import BooleanFalse, BooleanTrue
@@ -11,9 +11,9 @@ from sympy.logic.boolalg import BooleanFalse, BooleanTrue
@@ -219,7 +219,7 @@ class CBackend:
@@ -219,7 +219,7 @@ class CBackend:
raise NotImplementedError(f"{self.__class__.__name__} does not support node of type {node.__class__.__name__}")
@@ -276,7 +276,7 @@ class CBackend:
@@ -276,7 +276,7 @@ class CBackend:
@@ -289,12 +289,12 @@ class CBackend:
@@ -289,12 +289,12 @@ class CBackend:
@@ -302,7 +302,7 @@ class CBackend:
@@ -302,7 +302,7 @@ class CBackend:
@@ -322,7 +322,7 @@ class CBackend:
@@ -322,7 +322,7 @@ class CBackend:
@@ -483,13 +483,13 @@ class CustomSympyPrinter(CCodePrinter):
@@ -483,13 +483,13 @@ class CustomSympyPrinter(CCodePrinter):
@@ -648,22 +648,22 @@ class VectorizedCustomSympyPrinter(CustomSympyPrinter):
@@ -648,22 +648,22 @@ class VectorizedCustomSympyPrinter(CustomSympyPrinter):
@@ -747,12 +747,12 @@ class VectorizedCustomSympyPrinter(CustomSympyPrinter):
@@ -747,12 +747,12 @@ class VectorizedCustomSympyPrinter(CustomSympyPrinter):
# special treatment for all-integer args, for loop index arithmetic until we have proper int vectorization
if all([(type(e) is cast_func and str(e.dtype) == self.instruction_set['int']) or isinstance(e, sp.Integer)
or (type(e) is TypedSymbol and isinstance(e.dtype, BasicType) and e.dtype.is_int()) for e in args]):
@@ -880,7 +880,7 @@ class VectorizedCustomSympyPrinter(CustomSympyPrinter):
@@ -880,7 +880,7 @@ class VectorizedCustomSympyPrinter(CustomSympyPrinter):
if isinstance(condition, cast_func) and get_type_of_expression(condition.args[0]) == create_type("bool"):