Skip to content

ReductionParams

#include <ncarray/custom_types.hh>
struct ReductionParams

Defined in src/lib/ncarray/custom_types.hh:105

A struct to define mapping requirements when performing axis-aware reductions.

The fields of this struct are used to simplify traversal of input arrays and their mapping (after applying the reducing operation) to the output array when performing reductions along specific axes. This is not used for full reductions to scalars.

Return Name Description
ssize_t shape
ssize_t strides
ssize_t in_strides
int shifts
ssize_t masks
ssize_t ndim
double ddof Delta degrees of freedom, used only for variance and stdev.

ssize_t shape[NCARRAY_MAX_NDIM]

Defined in src/lib/ncarray/custom_types.hh:106


ssize_t strides[NCARRAY_MAX_NDIM]

Defined in src/lib/ncarray/custom_types.hh:107


ssize_t in_strides[NCARRAY_MAX_NDIM]

Defined in src/lib/ncarray/custom_types.hh:108


int shifts[NCARRAY_MAX_NDIM]

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


ssize_t masks[NCARRAY_MAX_NDIM]

Defined in src/lib/ncarray/custom_types.hh:110


ssize_t ndim

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


double ddof { 0.0 }

Defined in src/lib/ncarray/custom_types.hh:112

Delta degrees of freedom, used only for variance and stdev.