strata::seq¶
Part of Views and expressions.
A range of indices along one axis: where a block starts and how many elements it takes.
seq{1, 4} is the indices 1, 2 and 3, a size known at run time. seq<2>{i} starts at i and takes two, a size fixed by the type: the shape of the block then has a static extent.
Template parameters
| Name | Description |
|---|---|
Size | The number of indices: a number for a static size, Dyn for one given at run time. |
Members¶
extent¶
The size as a Shape extent: static, or Dyn.
seq¶
The range [from, to).
Precondition
Both indices are non-negative and from <= to.
The range that starts at from and takes Size indices.
Precondition
from is non-negative.
first¶
The first index of the range.
size¶
The number of indices in the range.