Skip to content

ReductionParams

#include <custom_types.hh>
struct ReductionParams

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

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.

Name Kind Owner
shape variable Declared here
strides variable Declared here
in_strides variable Declared here
shifts variable Declared here
masks variable Declared here
ndim variable Declared here
ddof variable Declared here
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

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


ssize_t strides

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


ssize_t in_strides

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


int shifts

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


ssize_t masks

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


ssize_t ndim

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


double ddof { 0.0 }

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

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