|
RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
|
Reduce class that does a reduction with a binary tree. More...
#include <reduce.hpp>
Public Member Functions | |
| RAJA_HOST_DEVICE constexpr RAJA_INLINE | BinaryTreeReduce (T init=BinaryOp::identity(), BinaryOp op=BinaryOp {}) noexcept |
| RAJA_HOST_DEVICE constexpr RAJA_INLINE void | reset (T init=BinaryOp::identity()) noexcept |
| reset the combined value of the reducer to the identity More... | |
| RAJA_HOST_DEVICE constexpr RAJA_INLINE T | get_and_reset (T init=BinaryOp::identity()) |
| return the combined value and reset the reducer More... | |
| RAJA_HOST_DEVICE constexpr RAJA_INLINE T | get () const |
| return the combined value More... | |
| RAJA_HOST_DEVICE constexpr RAJA_INLINE void | combine (T value) |
| combine a value into the reducer More... | |
| RAJA_HOST_DEVICE constexpr RAJA_INLINE void | operator+= (T value) |
| combine a value into the reducer More... | |
Static Public Attributes | |
| static constexpr SizeType | num_levels = t_num_levels |
Reduce class that does a reduction with a binary tree.
|
inlineexplicitconstexprnoexcept |
|
inlineconstexprnoexcept |
reset the combined value of the reducer to the identity
|
inlineconstexpr |
return the combined value and reset the reducer
|
inlineconstexpr |
return the combined value
|
inlineconstexpr |
combine a value into the reducer
|
inlineconstexpr |
combine a value into the reducer
|
staticconstexpr |