|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
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 instance to the current instance. Definition at line 39 of file ParallelReduceTools.h.
|
inline |
Definition at line 43 of file ParallelReduceTools.h.
References ParticleBinning::ArrayReduction< SizeType, IndexType, N >::the_array.
|
inline |
Definition at line 49 of file ParallelReduceTools.h.
References ParticleBinning::ArrayReduction< SizeType, IndexType, N >::the_array.
|
inline |
Definition at line 64 of file ParallelReduceTools.h.
References ParticleBinning::ArrayReduction< SizeType, IndexType, N >::the_array.
|
inline |
Definition at line 55 of file ParallelReduceTools.h.
References ParticleBinning::ArrayReduction< SizeType, IndexType, N >::the_array.
| SizeType ParticleBinning::ArrayReduction< SizeType, IndexType, N >::the_array[N] |
Definition at line 40 of file ParallelReduceTools.h.
Referenced by ParticleBinning::ArrayReduction< SizeType, IndexType, N >::ArrayReduction(), ParticleBinning::ArrayReduction< SizeType, IndexType, N >::ArrayReduction(), ParticleBinning::ArrayReduction< SizeType, IndexType, N >::operator+=(), ParticleBinning::ArrayReduction< SizeType, IndexType, N >::operator=(), TEST_F(), TEST_F(), and TEST_F().