Skip to content

Function odd

function odd(const vec<T, N> &) simd

template <size_t group = 1, typename T, size_t N, size_t Nout = N / 2>
    requires(N >= 2 && (N & 1) == 0)
KFR_INTRINSIC vec<T, Nout> odd(const vec<T, N>& x)

Extracts the odd-indexed elements of x (with optional grouping).

Elements at indices group, 3* group, 5* group, ... are gathered into the result.

Template parameters
group Stride between consecutive selected pairs.
T Element type of the vector.
N Input vector length, must be even and at least 2.
Nout Output length, defaults to N / 2.
Parameters
x Source vector.
Returns
A vector of length Nout holding the odd-indexed elements of x.

Fully qualified name: kfr::odd(const vec<T, N> &)

Declared at simd/shuffle.hpp:648

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