Argon 0.1.0
Loading...
Searching...
No Matches
argon::vectorize::interleaved< Stride, ScalarType > Struct Template Reference
Inheritance diagram for argon::vectorize::interleaved< Stride, ScalarType >:
Collaboration diagram for argon::vectorize::interleaved< Stride, ScalarType >:

Classes

struct  Iterator
struct  ConstIterator

Public Types

using intrinsic_type = simd::Vec128_t<ScalarType>
using iterator = Iterator
using const_iterator = ConstIterator

Public Member Functions

 interleaved (ScalarType *start, ScalarType *end)
 interleaved (ScalarType *start, const size_t size)
 interleaved (const std::span< ScalarType > span)
iterator begin () const
const ScalarType * end () const
const_iterator cbegin () const
const ScalarType * cend () const
size_t size () const
 The number of iterations (groups of Stride vectors).
load_store_tail< ScalarType, Stride > with_tail () const
 A view of the same range that also visits the final, partial group of vectors.

Static Public Member Functions

static constexpr size_t vectorizeable_size (size_t size)

Static Public Attributes

static constexpr size_t lanes = sizeof(intrinsic_type) / sizeof(ScalarType)

Member Function Documentation

◆ with_tail()

template<size_t Stride, typename ScalarType>
load_store_tail< ScalarType, Stride > argon::vectorize::interleaved< Stride, ScalarType >::with_tail ( ) const
inline

A view of the same range that also visits the final, partial group of vectors.

This view skips frames after the last whole group; with_tail() visits them too. Each element is a Partial whose value is one vector per channel; lanes past the end load as zero and are never stored. Elements that don't complete a frame of Stride are not visited.


The documentation for this struct was generated from the following file: