ReductionParams
ReductionParams
Section titled “ReductionParams”#include <custom_types.hh>struct ReductionParamsDefined 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.
List of all members
Section titled “List of all members”| 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 |
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 shapeDefined in src/lib/ncarray/custom_types.hh:107
strides
Section titled “strides”ssize_t stridesDefined in src/lib/ncarray/custom_types.hh:108
in_strides
Section titled “in_strides”ssize_t in_stridesDefined in src/lib/ncarray/custom_types.hh:109
shifts
Section titled “shifts”int shiftsDefined in src/lib/ncarray/custom_types.hh:110
ssize_t masksDefined in src/lib/ncarray/custom_types.hh:111
ssize_t ndimDefined 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.