Computes the inverse of the function \( x \rightarrow xe^x \).
{
template< eve::floating_real_value T >
kumi::tuple<T, T>
lambert(T x)
noexcept;
}
constexpr callable_lambert_ lambert
Computes the inverse of the function .
Definition: lambert.hpp:54
Definition: all_of.hpp:22
A tuple of the two branch values of the Lambert functionis returned with the following considerations:
#include <eve/module/special.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = {-1.0, -0.367879441171441, 0.0, -0.2, 0.2, -0.0, 3.0, 100.0};
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<< "-> w0 = " << w0 << '\n'
<< "-> wm1 = " << wm1<< '\n'
;
float xf = -0.2f;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "-> sw0 = " << sw0 << '\n'
<< "-> swm1 = " << swm1<< '\n';
return 0;
}
Wrapper for SIMD registers.
Definition: wide.hpp:65