Computes the inverse of the error function.
Defined in header
#include <eve/module/special.hpp>
{
template< eve::floating_ordered_value T >
}
constexpr callable_erf_inv_ erf_inv
Computes the inverse of the error function.
Definition: erf_inv.hpp:50
Parameters
Return value
The value y
such that erf(y)==x
is returned. For x
outside of \([-1,1]\), the result is NaN.
#include <eve/module/special.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = { 0.0f, 1.0f, -1.0f, -0.5f};
std::cout
<< "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
;
float xf = 1.0f;
float yf = 2.0f;
std::cout
<< "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "<- yf = " << yf << '\n'
return 0;
}
Wrapper for SIMD registers.
Definition: wide.hpp:65