Function widen¶
function widen(const vec<T, N> &, std::type_identity_t<T>) simd¶
template <size_t Nout, typename T, size_t N>
requires(Nout > N)
KFR_INTRINSIC vec<T, Nout> widen(const vec<T, N>& x, std::type_identity_t<T> newvalue = T()) Widens x to length Nout by appending lanes set to newvalue.
Active when Nout > N. The appended lanes are filled with newvalue (default value of T if unspecified).
| Nout | Desired output length. |
| T | Element type of the vector. |
| N | Input vector length. |
| x | Source vector. |
| newvalue | Value to fill the appended lanes with. |
A vector of length Nout with the appended lanes set to newvalue. |
Fully qualified name: kfr::widen(const vec<T, N> &, std::type_identity_t<T>)
Declared at simd/shuffle.hpp:585
Function widen¶
function widen(const vec<T, Nout> &, TS) simd¶
template <size_t Nout, typename T, typename TS>
constexpr KFR_INTRINSIC const vec<T, Nout>& widen(const vec<T, Nout>& x, TS) { … } Identity overload of widen() for the Nout == input length case.
Fully qualified name: kfr::widen(const vec<T, Nout> &, TS)
Declared at simd/shuffle.hpp:595
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.