Skip to content
Snippets Groups Projects

Reduction Support

Open Richard Angersbach requested to merge rangersbach/reductions into v2.0-dev
Compare and Show latest version
4 files
+ 8
7
Preferences
Compare changes
Files
4
from typing import overload, cast, Any
from functools import reduce
from operator import add, mul, sub, truediv
from operator import add, mul, sub
import sympy as sp
import sympy.core.relational
import sympy.logic.boolalg
from sympy.codegen.ast import AssignmentBase, AugmentedAssignment
@@ -184,7 +183,7 @@ class FreezeExpressions:
assert isinstance(lhs, PsSymbolExpr)
orig_lhs_symb = lhs.symbol
dtype = rhs.dtype # TODO: kernel with (implicit) up/downcasts?
dtype = rhs.dtype # TODO: kernel with (implicit) up/downcasts?
# replace original symbol with pointer-based type used for export
orig_lhs_symb_as_ptr = PsSymbol(orig_lhs_symb.name, PsPointerType(dtype))