Function resize¶
function resize(const vec<T, N> &) simd¶
template <size_t Nout, typename T, size_t N>
requires(Nout != N)
KFR_INTRINSIC vec<T, Nout> resize(const vec<T, N>& x) Resizes a vector to length Nout.
When Nout > N the pattern of x is repeated cyclically; when Nout < N the vector is truncated. The Nout == N case is handled by a separate overload that returns the input unchanged.
| Nout | Desired output length. |
| T | Element type of the vector. |
| N | Input vector length. |
| x | Source vector. |
A vector of length Nout. |
Fully qualified name: kfr::resize(const vec<T, N> &)
Declared at simd/shuffle.hpp:220
Function resize¶
function resize(const vec<T, N> &) simd¶
template <size_t Nout, typename T, size_t N>
requires(Nout == N)
constexpr KFR_INTRINSIC const vec<T, Nout>& resize(const vec<T, N>& x) { … } Identity overload of resize() for the Nout == N case.
Fully qualified name: kfr::resize(const vec<T, N> &)
Declared at simd/shuffle.hpp:231
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.