E.V.E  0.1-beta

◆ minlog10

eve::minlog10 = {}
inlineconstexpr

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

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

Member Effect
operator() Computes the minlog10 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::minlog10(as<T>()) is semantically equivalent to:

  • T(-37.9298f) if eve::element_type_t<T> is float
  • T(-307.653) if eve::element_type_t<T> is double

Example

See it live on Compiler Explorer

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