Skip to content

Function permutegroups

function permutegroups(const vec<T, N> &, elements_t<Indices...>) simd

template <size_t group, size_t... Indices, typename T, size_t N, size_t count = sizeof...(Indices)>
KFR_INTRINSIC vec<T, N> permutegroups(const vec<T, N>& x, elements_t<Indices...> i = elements_t<Indices...>())

Group-wise variant of permute() that operates on blocks of group elements.

Same as permute() but the index pattern is applied per group of group consecutive lanes rather than per single lane.

Template parameters
group Number of lanes in each group.
Indices Compile-time index list defining the per-tile source selection.
T Element type of the vector.
N Input vector length.
count Number of indices in Indices.
Parameters
x Source vector.
i Index pattern selector.
Returns
A vector of length N with lanes permuted by group according to i.

Fully qualified name: kfr::permutegroups(const vec<T, N> &, elements_t<Indices...>)

Declared at simd/shuffle.hpp:780

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