|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
|
A templated structure for performing array-based reductions in parallel computations. More...
#include <ParallelReduceTools.h>
Public Member Functions | |
| KOKKOS_INLINE_FUNCTION | ArrayReduction () |
| KOKKOS_INLINE_FUNCTION | ArrayReduction (const ArrayReduction &rhs) |
| KOKKOS_INLINE_FUNCTION ArrayReduction & | operator= (const ArrayReduction &rhs) |
| KOKKOS_INLINE_FUNCTION ArrayReduction & | operator+= (const ArrayReduction &src) |
Public Attributes | |
| SizeType | the_array [N] |
A templated structure for performing array-based reductions in parallel computations.
| SizeType | The type used for the elements of the array. |
| IndexType | The type used for indexing the array. |
| N | The fixed size of the array. |
This structure provides functionality to initialize, copy, assign, and perform element-wise addition on arrays of fixed size. It is designed to be used in parallel reduction operations with Kokkos.
Member Functions:
ArrayReduction(): Default constructor that initializes all elements of the array to zero.
ArrayReduction(const ArrayReduction& rhs): Copy constructor that performs a deep copy of the array.
ArrayReduction& operator=(const ArrayReduction& rhs): Assignment operator that performs a deep copy of the array.
ArrayReduction& operator+=(const ArrayReduction& src): Element-wise addition operator that adds the elements of another ArrayReduction instance to the current instance.
Definition at line 38 of file ParallelReduceTools.h.
|
inline |
Definition at line 42 of file ParallelReduceTools.h.
References the_array.
Referenced by ArrayReduction(), operator+=(), and operator=().
|
inline |
Definition at line 46 of file ParallelReduceTools.h.
References ArrayReduction(), and the_array.
|
inline |
Definition at line 57 of file ParallelReduceTools.h.
References ArrayReduction(), and the_array.
|
inline |
Definition at line 50 of file ParallelReduceTools.h.
References ArrayReduction(), and the_array.
| SizeType ParticleBinning::ArrayReduction< SizeType, IndexType, N >::the_array[N] |
Definition at line 39 of file ParallelReduceTools.h.
Referenced by ArrayReduction(), ArrayReduction(), operator+=(), and operator=().