Skip to content

Function gather_stride

function gather_stride(const T *, size_t) simd

template <size_t Nout, size_t groupsize = 1, typename T>
KFR_INTRINSIC vec<T, Nout * groupsize> gather_stride(const T* base, size_t stride)

Gathers Nout groups of groupsize contiguous elements from base separated by stride.

Template parameters
Nout Number of groups to gather.
groupsize Number of contiguous elements in each group.
T Element type.
Parameters
base Pointer to the source array.
stride Offset (in groups) between consecutive groups.
Returns
A vector of Nout*groupsize elements assembled from the gathered groups.

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

Function gather_stride

function gather_stride(const T *) simd

template <size_t Nout, size_t Stride, typename T>
KFR_INTRINSIC vec<T, Nout> gather_stride(const T* base)

Gathers Nout elements from base at compile-time stride Stride.

Template parameters
Nout Number of elements to gather.
Stride Fixed offset (in elements) between consecutive gathered elements.
T Element type.
Parameters
base Pointer to the source array.
Returns
A vector holding base[0], base[Stride], base[2*Stride], ... in order.

Fully qualified name: kfr::gather_stride(const T *)

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