Skip to content

AxisDescr

#include <indexing.hh>
struct AxisDescr

Defined 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.

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
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 index

Defined in src/lib/ncarray/indexing.hh:119

The axis index/dimension. E.g. 0 is the first axis.


ssize_t length

Defined in src/lib/ncarray/indexing.hh:120

The total length of the axis.


ssize_t stride

Defined in src/lib/ncarray/indexing.hh:121

The stride for this axis.


ssize_t offset

Defined in src/lib/ncarray/indexing.hh:122

The offset or suboffset for this axis.


bool is_pointer { false }

Defined in src/lib/ncarray/indexing.hh:123

Whether the axis is a pointer axis.


bool collapsed { false }

Defined in src/lib/ncarray/indexing.hh:124

Whether the axis has been collapsed (squeezed)


ssize_t data_shift { 0 }

Defined in src/lib/ncarray/indexing.hh:125

An accumulator to propagate offsets for new views.