Skip to content

Commit

Permalink
Reword.
Browse files Browse the repository at this point in the history
  • Loading branch information
rchen20 committed Sep 27, 2024
1 parent 4b7034d commit 01fab6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/sphinx/user_guide/feature/reduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,15 @@ methods to access the reduction results.
In the kernel body lambda expression, a ``ValLoc<T,I>`` must be wrapped in a
``ValOp``, and passed to the lambda in the same order as the corresponding
``RAJA::expt::Reduce`` arguments, e.g. ``ValOp<ValLoc<T,I>, Op>``.
For convenience, the alias of ``RAJA::expt::ValLocOp<T,I,Op>`` can be used.
For convenience, an alias of ``RAJA::expt::ValLocOp<T,I,Op>`` is provided.
Within the lambda, this ``ValLocOp`` object provides ``minloc``, and ``maxloc``
functions::

double* a = ...;

using VALOPLOC_DOUBLE_MIN = RAJA::expt::ValOp<ValLoc<double, RAJA::Index_type>,
RAJA::operators::minimum>;
using VALOPLOC_DOUBLE_MAX = RAJA::expt::ValOpLoc<double, RAJA::Index_type,
using VALOPLOC_DOUBLE_MAX = RAJA::expt::ValLocOp<double, RAJA::Index_type,
RAJA::operators::minimum>;

using VL_DOUBLE = RAJA::expt::ValLoc<double>;
Expand Down Expand Up @@ -302,7 +302,7 @@ the forall directly without ``getVal()`` or ``getLoc()`` functions.

double* a = ...;

using VALOPLOC_DOUBLE_MIN = RAJA::expt::ValOpLoc<double, RAJA::Index_type,
using VALOPLOC_DOUBLE_MIN = RAJA::expt::ValLocOp<double, RAJA::Index_type,
RAJA::operators::minimum>;

// No ValLoc needed from the user here.
Expand Down

0 comments on commit 01fab6a

Please sign in to comment.