Function extend¶
function extend(const vec<T, 1> &) simd¶
Extends a single-element vector to length Nout by repeating its value.
| Nout | Desired output length. |
| T | Element type of the vector. |
| x | Single-element source vector. |
A vector of length Nout whose lanes are all equal to x.front(). |
Fully qualified name: kfr::extend(const vec<T, 1> &)
Declared at simd/shuffle.hpp:347
Function extend¶
function extend(const vec<T, N> &) simd¶
template <size_t Nout, typename T, size_t N>
requires(N != Nout && N > 1)
KFR_INTRINSIC vec<T, Nout> extend(const vec<T, N>& x) Resizes a multi-element vector to length Nout by cyclic repetition or truncation.
Active when N != Nout and N > 1.
| 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::extend(const vec<T, N> &)
Declared at simd/shuffle.hpp:362
Function extend¶
function extend(const vec<T, N> &) simd¶
template <size_t Nout, typename T, size_t N>
requires(N == Nout && N > 1)
constexpr KFR_INTRINSIC const vec<T, Nout>& extend(const vec<T, N>& x) { … } Identity overload of extend() for the Nout == N case.
Fully qualified name: kfr::extend(const vec<T, N> &)
Declared at simd/shuffle.hpp:372
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.