Skip to content

Slice

#include <ncarray/indexing.hh>
struct Slice

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

A struct representing a slice for indexing by a step between a start and stop index.

The Slice represents the indexing parameters used to index the array, not the resultant sub-view produced from the indexing operation.

Return Name Description
ssize_t start
ssize_t stop
ssize_t step

ssize_t start

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


ssize_t stop

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


ssize_t step

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

Return Name Description
NCA_HD Slice inline
NCA_HD Slice inline

inline

inline NCA_HD Slice(ssize_t start_, ssize_t stop_)

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


inline

inline NCA_HD Slice(ssize_t start_, ssize_t stop_, ssize_t step_)

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