From 7b43ffd2e12f5d69ccc30fdf451ee47d7caea6ae Mon Sep 17 00:00:00 2001 From: zy69guqi <richard.angersbach@fau.de> Date: Mon, 31 Mar 2025 13:45:15 +0200 Subject: [PATCH] Add minor comment to ReductionInfo dataclass --- src/pystencils/backend/kernelcreation/context.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pystencils/backend/kernelcreation/context.py b/src/pystencils/backend/kernelcreation/context.py index 536c73c7f..358b5ff6c 100644 --- a/src/pystencils/backend/kernelcreation/context.py +++ b/src/pystencils/backend/kernelcreation/context.py @@ -49,6 +49,8 @@ FieldArrayPair = namedtuple("FieldArrayPair", ("field", "array")) @dataclass(frozen=True) class ReductionInfo: + """Information about a reduction operation, its neutral element in form of an initial value + and the pointer used by the kernel as write-back argument.""" op: ReductionOp init_val: PsExpression -- GitLab