Skip to content
Snippets Groups Projects

Reduction Support

Open Richard Angersbach requested to merge rangersbach/reductions into v2.0-dev
Viewing commit 1a1c23b5
Show latest version
1 file
+ 3
2
Preferences
Compare changes
@@ -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)