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

Classes

struct  LoadInterleavedIterator

Public Types

using intrinsic_type = simd::Vec128_t<ScalarType>
using iterator = LoadInterleavedIterator
using sentinel = const ScalarType*

Public Member Functions

iterator begin ()
const ScalarType * end ()
size_t size () const
template<std::ranges::contiguous_range R>
 load_interleaved (R &&r)
load_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<typename ScalarType, size_t Stride = 2>
load_tail< ScalarType, Stride > argon::vectorize::load_interleaved< ScalarType, Stride >::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. Elements that don't complete a frame of Stride are not visited.


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