Skip to content

SumTraits

#include <ncarray/reductions.hh>
struct SumTraits

Defined in src/lib/ncarray/reductions.hh:109

Traits for a summation along axes.

Return Name Description
NCA_HDAccumT< T > identity static inline
NCA_HD auto fill static inline
NCA_HDAccumT< T > transform static inline
NCA_HDAccumT< T > reduce static inline
NCA_HD auto store static inline
NCA_D void atomic static inline

static inline

template<typename T> static inline NCA_HDAccumT< T > identity()

Defined in src/lib/ncarray/reductions.hh:117


static inline

template<typename T> static inline NCA_HD auto fill()

Defined in src/lib/ncarray/reductions.hh:120


static inline

template<typename T> static inline NCA_HDAccumT< T > transform(ssize_t idx, T val)

Defined in src/lib/ncarray/reductions.hh:123


static inline

template<typename T> static inline NCA_HDAccumT< T > reduce(AccumT< T > a, AccumT< T > b)

Defined in src/lib/ncarray/reductions.hh:128


static inline

template<typename T> static inline NCA_HD auto store(AccumT< T > res, double ddof = 0.0)

Defined in src/lib/ncarray/reductions.hh:131


static inline

template<typename T> static inline NCA_D void atomic(AccumT< T > * dest, AccumT< T > val)

Defined in src/lib/ncarray/reductions.hh:134

Name Description
AccumT
OutT

using AccumT = typename op_traits< T >::sum_type

Type: typename op_traits< T >::sum_type

Defined in src/lib/ncarray/reductions.hh:111


using OutT = AccumT< T >

Type: AccumT< T >

Defined in src/lib/ncarray/reductions.hh:114