E.V.E
v2023.02.15

◆ inv_egamma

eve::inv_egamma = {}
inlineconstexpr

Callable object computing the inverse of the [Euler-Mascheroni constant](eve::egamma).

Defined in Header

#include <eve/module/math.hpp>

Callable Signatures

namespace eve
{
template< eve::value T >
T inv_egamma(as<T> x) noexcept;
}
constexpr callable_inv_egamma_ inv_egamma
Callable object computing the inverse of the [Euler-Mascheroni constant](eve::egamma).
Definition: inv_egamma.hpp:51
Definition: abi.hpp:18
Lightweight type-wrapper.
Definition: as.hpp:29

Parameters

  • x : Type wrapper instance embedding the type of the constant.

Return value

The call eve::inv_egamma(as<T>()) returns the inverse of the [Euler-Mascheroni constant](eve::egamma).

Example

#include <eve/module/math.hpp>
#include <eve/wide.hpp>
#include <iostream>
#include <iomanip>
using wide_ft = eve::wide<float>;
int main()
{
std::cout << "---- simd" << std::setprecision(9) << std::endl
<< "-> inv_egamma(as<wide_ft>()) = " << eve::inv_egamma(eve::as<wide_ft>()) << std::endl
<< "-> upward(inv_egamma)(as<wide_ft>()) = " << eve::upward(eve::inv_egamma)(eve::as<wide_ft>()) << std::endl
<< "-> downward(inv_egamma)(as<wide_ft>()) = " << eve::downward(eve::inv_egamma)(eve::as<wide_ft>()) << std::endl;
std::cout << "---- scalar" << std::endl
<< "-> inv_egamma(as<float>()) = " << eve::inv_egamma(eve::as(float())) << std::endl;
return 0;
}
constexpr upward_type const upward
Higher-order Callable Object imbuing upward rounding semantic onto other Callable Objects.
Definition: roundings.hpp:160
constexpr downward_type const downward
Higher-order Callable Object imbuing rounding downard semantic onto other Callable Objects.
Definition: roundings.hpp:161
Wrapper for SIMD registers.
Definition: wide.hpp:65