E.V.E
v2022.03.00

◆ upgrade_

eve::upgrade_ = {}
inlineconstexpr

convert a eve::value to the upgraded base type.

Defined in Header

#include <eve/module/core.hpp>

Callable Signatures

namespace eve
{
template< eve::value T >
as_wide_as<T, eve::upgrade_t<T>> upgrade_(T x) noexcept; //1
template< eve::callable C >
as_wide_as<T, , eve::upgrade_t<T>> upgrade_(C x) noexcept; //2
}
constexpr upgrade_converter const upgrade_
convert a eve::value to the upgraded base type.
Definition: converter.hpp:740
Definition: all_of.hpp:22

Parameters

  • x : argument.

Return value

  • if x is an eve::simd_value, returns a value of typewide <u_t, cardinal_t<T>>,
  • if x is an eve::scalar_value, returns a value of type u_t
  • if x is a supported callable a call to upgrade_(x)(...) is semantically equivalent to upgrade__(x(...))

where u_t is eve::upgrade_t<eve::element_type_t<T>>

Example