Skip to content
Snippets Groups Projects
Commit 35c8160b authored by Richard Angersbach's avatar Richard Angersbach
Browse files

Minor import fixes

parent 54837529
No related branches found
No related tags found
1 merge request!438Reduction Support
......@@ -62,11 +62,10 @@ from ..ast.vector import PsVecMemAcc
from ..constants import PsConstant
from ...types import PsNumericType, PsStructType, PsType
from ..exceptions import PsInputError
from ..functions import PsMathFunction, MathFunctions
from ..functions import PsMathFunction, MathFunctions, NumericLimitsFunctions
from ..exceptions import FreezeError
import backend.functions
from codegen.properties import ReductionSymbolProperty
from ...codegen.properties import ReductionSymbolProperty
ExprLike = (
......@@ -207,10 +206,10 @@ class FreezeExpressions:
# TODO: unsure if sp.Min & sp.Max are mapped by map_Min/map_Max afterwards
case "min":
op = sp.Min
init_val = backend.functions.NumericLimitsFunctions("min")
init_val = NumericLimitsFunctions("min")
case "max":
op = sp.Max
init_val = backend.functions.NumericLimitsFunctions("max")
init_val = NumericLimitsFunctions("max")
case _:
raise FreezeError(f"Unsupported reduced assignment: {expr.op}.")
......
......@@ -3,7 +3,7 @@ from dataclasses import dataclass
from ..field import Field
from backend.ast.expressions import PsExpression
from ..backend.ast.expressions import PsExpression
@dataclass(frozen=True)
......
from .astnodes import ConditionalFieldAccess
from .typed_sympy import TypedSymbol, CastFunc
from .pointers import mem_acc
from .reduction import reduced_assign
from .math import (
prod,
......@@ -34,7 +33,6 @@ from .math import (
__all__ = [
"ConditionalFieldAccess",
"reduced_assign",
"TypedSymbol",
"CastFunc",
"mem_acc",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment