ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
Reduction Namespace Reference

Classes

class  KokkosReducer
 Custom reduction in the form required by Kokkos. More...
 

Typedefs

template<typename ResultType >
using AddPartialResultKernel = std::function< void(ResultType &, Particle const &)>
 Kernel that adds the result from a single particle to a reduction.
 
template<typename ResultType >
using ReductionOp = std::function< void(ResultType &, ResultType const &)>
 Join two partial reduction results.
 

Functions

template<typename ResultType , typename Kernel >
KokkosReducer< ResultType, Kernel > make_kokkos_reducer (Kernel k, ReductionOp< ResultType > reduce_op)
 

Typedef Documentation

◆ AddPartialResultKernel

template<typename ResultType >
using Reduction::AddPartialResultKernel = typedef std::function<void(ResultType &, Particle const &)>

Kernel that adds the result from a single particle to a reduction.

Definition at line 39 of file particle_reduction.hpp.

◆ ReductionOp

template<typename ResultType >
using Reduction::ReductionOp = typedef std::function<void(ResultType &, ResultType const &)>

Join two partial reduction results.

Definition at line 44 of file particle_reduction.hpp.

Function Documentation

◆ make_kokkos_reducer()

template<typename ResultType , typename Kernel >
KokkosReducer< ResultType, Kernel > Reduction::make_kokkos_reducer ( Kernel  k,
ReductionOp< ResultType >  reduce_op 
)

Definition at line 83 of file particle_reduction.hpp.