Computes the the greatest representable value.
Defined in Header
#include <eve/module/core.hpp>
{
template< eve::value T >
}
constexpr callable_valmax_ valmax
Computes the the greatest representable value.
Definition: valmax.hpp:55
Lightweight type-wrapper.
Definition: as.hpp:29
Parameters
x
: Type wrapper instance embedding the type of the constant.
Return value
The call eve::valmax(as<T>())
is semantically equivalent to T(std::numeric_limits<element_type_t<T>>::max())
#include <eve/module/core.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft x;
wide_it y;
std::cout << "---- simd" << '\n'
float xf;
std::int16_t xi;
std::cout << "---- scalar" << '\n'
return 0;
}
Wrapper for SIMD registers.
Definition: wide.hpp:65