diff --git a/src/pystencils/codegen/properties.py b/src/pystencils/codegen/properties.py index 2b0af986aa2ab74fc03ebf534a448adaca25c3ea..0bad4e89834e2185665689703b1b4f6530813f14 100644 --- a/src/pystencils/codegen/properties.py +++ b/src/pystencils/codegen/properties.py @@ -4,6 +4,7 @@ from dataclasses import dataclass from ..field import Field from typing import Any + @dataclass(frozen=True) class PsSymbolProperty: """Base class for symbol properties, which can be used to add additional information to symbols""" @@ -16,10 +17,10 @@ class UniqueSymbolProperty(PsSymbolProperty): @dataclass(frozen=True) class ReductionSymbolProperty(UniqueSymbolProperty): - """Symbol acts as a base pointer to a field.""" + """Property for symbols specifying the operation and initial value for a reduction.""" op: str - init_val: Any # TODO: type? + init_val: Any # TODO: type? @dataclass(frozen=True)