Skip to content

Function narrow

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

template <size_t Nout, typename T, size_t N>
KFR_INTRINSIC vec<T, Nout> narrow(const vec<T, N>& x)

Narrows x to length Nout by truncation.

Active when Nout <= N. The first Nout lanes of x are retained.

Template parameters
Nout Desired output length.
T Element type of the vector.
N Input vector length.
Parameters
x Source vector.
Returns
A vector of length Nout holding the first Nout elements of x.

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

Declared at simd/shuffle.hpp:611

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