OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
ParticleBinning::ArrayReduction< SizeType, IndexType, N > Struct Template Reference

A templated structure for performing array-based reductions in parallel computations. More...

#include <ParallelReduceTools.h>

Collaboration diagram for ParticleBinning::ArrayReduction< SizeType, IndexType, N >:
Collaboration graph

Public Member Functions

KOKKOS_INLINE_FUNCTION ArrayReduction ()
 
KOKKOS_INLINE_FUNCTION ArrayReduction (const ArrayReduction &rhs)
 
KOKKOS_INLINE_FUNCTION ArrayReductionoperator= (const ArrayReduction &rhs)
 
KOKKOS_INLINE_FUNCTION ArrayReductionoperator+= (const ArrayReduction &src)
 

Public Attributes

SizeType the_array [N]
 

Detailed Description

template<typename SizeType, typename IndexType, IndexType N>
struct ParticleBinning::ArrayReduction< SizeType, IndexType, N >

A templated structure for performing array-based reductions in parallel computations.

Template Parameters
SizeTypeThe type used for the elements of the array.
IndexTypeThe type used for indexing the array.
NThe 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:

Definition at line 39 of file ParallelReduceTools.h.

Constructor & Destructor Documentation

◆ ArrayReduction() [1/2]

template<typename SizeType , typename IndexType , IndexType N>
KOKKOS_INLINE_FUNCTION ParticleBinning::ArrayReduction< SizeType, IndexType, N >::ArrayReduction ( )
inline

◆ ArrayReduction() [2/2]

template<typename SizeType , typename IndexType , IndexType N>
KOKKOS_INLINE_FUNCTION ParticleBinning::ArrayReduction< SizeType, IndexType, N >::ArrayReduction ( const ArrayReduction< SizeType, IndexType, N > &  rhs)
inline

Member Function Documentation

◆ operator+=()

template<typename SizeType , typename IndexType , IndexType N>
KOKKOS_INLINE_FUNCTION ArrayReduction & ParticleBinning::ArrayReduction< SizeType, IndexType, N >::operator+= ( const ArrayReduction< SizeType, IndexType, N > &  src)
inline

◆ operator=()

template<typename SizeType , typename IndexType , IndexType N>
KOKKOS_INLINE_FUNCTION ArrayReduction & ParticleBinning::ArrayReduction< SizeType, IndexType, N >::operator= ( const ArrayReduction< SizeType, IndexType, N > &  rhs)
inline

Member Data Documentation

◆ the_array


The documentation for this struct was generated from the following file: