ReductionParams
ReductionParams
Section titled “ReductionParams”#include <ncarray/custom_types.hh>struct ReductionParamsDefined 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.
Public Attributes
Section titled “Public Attributes”| 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
strides
Section titled “strides”ssize_t strides[NCARRAY_MAX_NDIM]Defined in src/lib/ncarray/custom_types.hh:107
in_strides
Section titled “in_strides”ssize_t in_strides[NCARRAY_MAX_NDIM]Defined in src/lib/ncarray/custom_types.hh:108
shifts
Section titled “shifts”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 ndimDefined 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.