Function dup¶
function dup(const vec<T, N> &) simd¶
template <typename T, size_t N, size_t Nout = N * 2>
KFR_INTRINSIC vec<T, Nout> dup(const vec<T, N>& x) Duplicates each element of x into a pair of adjacent lanes.
Element i of x becomes lanes 2*i and 2*i+1 of the result.
| T | Element type of the vector. |
| N | Input vector length. |
| Nout | Output length, defaults to N * 2. |
| x | Source vector. |
A vector of length Nout with each input element duplicated into adjacent lanes. |
Fully qualified name: kfr::dup(const vec<T, N> &)
Declared at simd/shuffle.hpp:849
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.