Skip to content

Function read_group

function read_group(const T *, size_t) simd

template <size_t count, size_t N, size_t group = 1, bool A = false, typename T>
KFR_INTRINSIC vec<T, group * count * N> read_group(const T* src, size_t stride)

Reads count groups of group*N elements separated by stride groups.

Example:

int arr[] = {0, 1, 2, 3, 4, 5, 6, 7};
 read_group<2, 1, 2>(arr, 2) == vec{0, 1, 4, 5}; // 2 groups of 2, stride 2 groups
Template parameters
count Number of groups to read.
N Base number of elements per group.
group Number of contiguous elements in each chunk.
A When true, requires aligned source pointers.
T Element type.
Parameters
src Pointer to the first element.
stride Offset (in groups, i.e. units of group elements) between consecutive groups.
Returns
A vector of group*count*N elements assembled from the groups.

Fully qualified name: kfr::read_group(const T *, size_t)

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.