Skip to content

Function promoteto

function promoteto(const Tin &) simd

template <typename Tout, typename Tin>
constexpr KFR_INTRINSIC Tout promoteto(const Tin& value) noexcept { … }

Promote a scalar to Tout .

Returns
static_cast<Tout>(value) .

Fully qualified name: kfr::promoteto(const Tin &)

Declared at simd/vec.hpp:1062

Function promoteto

function promoteto(const vec<Tin, N> &) simd

template <typename Tout, typename Tin, size_t N>
constexpr KFR_INTRINSIC vec<Tout, N> promoteto(const vec<Tin, N>& value) noexcept { … }

Promote a vector to a different element type.

Returns
vec<Tout, N> .

Fully qualified name: kfr::promoteto(const vec<Tin, N> &)

Declared at simd/vec.hpp:1072

Function promoteto

function promoteto(const vec<vec<Tin, N1>, N2> &) simd

template <typename Tout, typename Tin, size_t N1, size_t N2>
constexpr KFR_INTRINSIC vec<Tout, N2> promoteto(const vec<vec<Tin, N1>, N2>& value) noexcept { … }

Promote a nested vector to a different element type.

Returns
vec<Tout, N2> .

Fully qualified name: kfr::promoteto(const vec<vec<Tin, N1>, N2> &)

Declared at simd/vec.hpp:1086

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