Function make_vector¶
function make_vector(const Arg &, const Args &...) simd¶
template <typename Type = void, typename Arg, typename... Args, size_t N = (sizeof...(Args) + 1),
typename SubType =
fix_type<typename internal::conditional_common<std::is_void_v<Type>, Type, Arg, Args...>::type>>
constexpr KFR_INTRINSIC vec<SubType, N> make_vector(const Arg& x, const Args&... rest) { … } Create a vector from scalar values.
CHECK_THAT(( make_vector( 1, 2, 3, 4 ) ), DeepMatcher( i32x4{1, 2, 3, 4} ));
| Type | Optional explicit element type; defaults to the common type of the arguments. |
| x | First scalar. |
| rest | Remaining scalars. |
vec<SubType, N> where N = 1 + sizeof...(rest) . |
Fully qualified name: kfr::make_vector(const Arg &, const Args &...)
Declared at simd/vec.hpp:1304
Function make_vector¶
function make_vector(const vec<T, N> &) simd¶
template <typename T, size_t N>
constexpr KFR_INTRINSIC vec<T, N> make_vector(const vec<T, N>& x) { … } Identity overload: returns the passed vector unchanged.
Fully qualified name: kfr::make_vector(const vec<T, N> &)
Declared at simd/vec.hpp:1312
Function make_vector¶
function make_vector(cvals_t<T, Values...>) simd¶
template <typename T, T... Values, size_t N = sizeof...(Values)>
constexpr KFR_INTRINSIC vec<fix_type<T>, N> make_vector(cvals_t<T, Values...>) { … } Create a vector from a compile-time constant list.
vec<T, sizeof...(Values)> . |
Fully qualified name: kfr::make_vector(cvals_t<T, Values...>)
Declared at simd/vec.hpp:1322
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.