Slice
#include <indexing.hh>struct SliceDefined in src/lib/ncarray/indexing.hh:59
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.
List of all members
Section titled “List of all members”| Name | Kind | Owner |
|---|---|---|
start |
variable |
Declared here |
stop |
variable |
Declared here |
step |
variable |
Declared here |
Slice |
function |
Declared here |
Slice |
function |
Declared here |
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
ssize_t |
start |
|
ssize_t |
stop |
|
ssize_t |
step |
ssize_t startDefined in src/lib/ncarray/indexing.hh:72
ssize_t stopDefined in src/lib/ncarray/indexing.hh:73
ssize_t stepDefined in src/lib/ncarray/indexing.hh:74
Public Methods
Section titled “Public Methods”| 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:60
inline
inline NCA_HD Slice(ssize_t start_, ssize_t stop_, ssize_t step_)Defined in src/lib/ncarray/indexing.hh:66