AxisDescr
AxisDescr
Section titled “AxisDescr”#include <indexing.hh>struct AxisDescrDefined in src/lib/ncarray/indexing.hh:118
A description of an axis of an array. This struct can be used for creation of new views.
List of all members
Section titled “List of all members”| Name | Kind | Owner |
|---|---|---|
index |
variable |
Declared here |
length |
variable |
Declared here |
stride |
variable |
Declared here |
offset |
variable |
Declared here |
is_pointer |
variable |
Declared here |
collapsed |
variable |
Declared here |
data_shift |
variable |
Declared here |
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
ssize_t |
index |
The axis index/dimension. E.g. 0 is the first axis. |
ssize_t |
length |
The total length of the axis. |
ssize_t |
stride |
The stride for this axis. |
ssize_t |
offset |
The offset or suboffset for this axis. |
bool |
is_pointer |
Whether the axis is a pointer axis. |
bool |
collapsed |
Whether the axis has been collapsed (squeezed) |
ssize_t |
data_shift |
An accumulator to propagate offsets for new views. |
ssize_t indexDefined in src/lib/ncarray/indexing.hh:119
The axis index/dimension. E.g. 0 is the first axis.
length
Section titled “length”ssize_t lengthDefined in src/lib/ncarray/indexing.hh:120
The total length of the axis.
stride
Section titled “stride”ssize_t strideDefined in src/lib/ncarray/indexing.hh:121
The stride for this axis.
offset
Section titled “offset”ssize_t offsetDefined in src/lib/ncarray/indexing.hh:122
The offset or suboffset for this axis.
is_pointer
Section titled “is_pointer”bool is_pointer { false }Defined in src/lib/ncarray/indexing.hh:123
Whether the axis is a pointer axis.
collapsed
Section titled “collapsed”bool collapsed { false }Defined in src/lib/ncarray/indexing.hh:124
Whether the axis has been collapsed (squeezed)
data_shift
Section titled “data_shift”ssize_t data_shift { 0 }Defined in src/lib/ncarray/indexing.hh:125
An accumulator to propagate offsets for new views.