E.V.E  0.1-beta

◆ minlogdenormal

eve::minlogdenormal = {}
inlineconstexpr

Callable object computing the least value for which eve::exp returns a non zero result.

Required header: #include <eve/function/minlogdenormal.hpp>

Member Effect
operator() Computes the minlogdenormal constant

tempate < floating_value T > T operator()( as<T> const & t) const noexcept;
Lightweight type-wrapper.
Definition: as.hpp:29

Parameters

t: Type wrapper instance embedding the type of the constant.

Return value

the call eve::minlog(as<T>()) is semantically equivalent to:

  • T(-103.972f) if eve::element_type_t<T> is float
  • T(-745.133) if eve::element_type_t<T> is double

Example

See it live on Compiler Explorer

#include <eve/constant/minlogdenormal.hpp>
#include <eve/wide.hpp>
#include <iostream>
using wide_ft = eve::wide<float>;
int main()
{
wide_ft wxf;
std::cout << "---- simd" << std::endl
<< "-> minlogdenormal(as<wide_ft>()) = " << eve::minlogdenormal(eve::as<wide_ft>()) << std::endl
<< "-> minlogdenormal(as(wxf)) = " << eve::minlogdenormal(eve::as(wxf)) << std::endl;
double xf;
std::cout << "---- scalar" << std::endl
<< "-> minlogdenormal(as<float>()) = " << eve::minlogdenormal(eve::as(float())) << std::endl
<< "-> minlogdenormal(as<xf)) = " << eve::minlogdenormal(eve::as(xf)) << std::endl;
return 0;
}
constexpr callable_minlogdenormal_ minlogdenormal
Callable object computing the least value for which eve::exp returns a non zero result.
Definition: minlogdenormal.hpp:57
Wrapper for SIMD registers.
Definition: wide.hpp:65