E.V.E
v2023.02.15

◆ omega

eve::omega = {}
inlineconstexpr

Computes the the Wright \(\omega\) the inverse function of \( x \rightarrow \log x+x\).

Defined in header

#include <eve/module/special.hpp>

Callable Signatures

namespace eve
{
template< eve::floating_ordered_value T >
T omega(T x) noexcept;
}
constexpr callable_omega_ omega
Computes the the Wright the inverse function of .
Definition: omega.hpp:50
Definition: abi.hpp:18

Parameters

Return value

The value of the Wright \(\omega\) function is returned.

Example

#include <eve/module/special.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = {-10.0, -2.0, -0.5, 0.0, 0.2, 0.5, 10.0, 100.0};
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<< "-> eve::omega(pf) = " << eve::omega(pf) << '\n'
;
float xf = -0.2f;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "-> eve::omega(xf) = " << eve::omega(xf)<< '\n';
return 0;
}
Wrapper for SIMD registers.
Definition: wide.hpp:65