Skip to content

Function generate_vector

function generate_vector() simd

template <typename T, size_t Nout, typename Fn>
constexpr KFR_INTRINSIC vec<T, Nout> generate_vector() { … }

Generates a vector of length Nout by invoking Fn at each compile-time index.

Fn must be a default-constructible functor taking a size_t index and returning a value convertible to T.

Template parameters
T Element type of the resulting vector.
Nout Output vector length.
Fn Generator functor type.
Returns
A vector of length Nout where lane i equals Fn()(i) .

Fully qualified name: kfr::generate_vector()

Declared at simd/shuffle.hpp:811

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