|
|
| Partial (vector_type value, size_t remaining) |
| | A value whose first remaining lanes are in the range (lanes or more means all of them).
|
|
vector_type & | operator* () |
| | The value. Lanes past the end of the range are zero after a load.
|
| const vector_type & | operator* () const |
| | The value. Lanes past the end of the range are zero after a load.
|
|
vector_type * | operator-> () |
| | Member access on the value.
|
| const vector_type * | operator-> () const |
| | Member access on the value.
|
|
Partial & | operator= (vector_type value) |
| | Replace the value; only the lanes inside the range are stored.
|
|
size_t | count () const |
| | The number of leading lanes inside the range.
|
|
bool | full () const |
| | Whether every lane is inside the range.
|
|
predicate_type | active () const |
| | The lanes inside the range, as a predicate.
|
|
size_t | remaining () const |
| | The lanes left in the range from this vector on; FirstN of it is active().
|
template<typename ScalarType, size_t Stride = 1>
class argon::vectorize::Partial< ScalarType, Stride >
One vector (or, for interleaved views, one group of Stride vectors) of a range, and how many of its leading lanes lie inside the range.
- Template Parameters
-
| ScalarType | The element type of the range. |
| Stride | The interleave stride: 1 for a plain view, 2 to 4 for an interleaved one, whose lanes are frames of Stride consecutive elements. |
Every vector of a with_tail() view is full except possibly the last. Lanes past the end of the range are zero when loaded and are never written when stored; use active() to keep them out of reductions such as minimum or maximum, where a zero would matter.