diff --git a/loopy/library/reduction.py b/loopy/library/reduction.py index f1c5607fe27c750a8ec0ab9b3b22a2eb7e664034..d2a4e90ac0113367d2864b752909117f4da49dcb 100644 --- a/loopy/library/reduction.py +++ b/loopy/library/reduction.py @@ -52,6 +52,13 @@ class ReductionOperation(object): raise NotImplementedError def hidden_function(self): + """ + A reduction may result into a scalar callable during the codegen phase. + This function would return an instance of :class:`str` to scope such + functions that may result during "realize_reduction". For example: + `reduce(max(...))` results into another callable `max(a, b)` which is + the "hidden function" the operation is pointing to. + """ return None def __hash__(self):