Skip to content

AxisDescr

#include <ncarray/indexing.hh>
struct AxisDescr

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

A description of an axis of an array. This struct can be used for creation of new views.

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:116

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


ssize_t length

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

The total length of the axis.


ssize_t stride

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

The stride for this axis.


ssize_t offset

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

The offset or suboffset for this axis.


bool is_pointer { false }

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

Whether the axis is a pointer axis.


bool collapsed { false }

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

Whether the axis has been collapsed (squeezed)


ssize_t data_shift { 0 }

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

An accumulator to propagate offsets for new views.