◆ erf_inv
Callable object computing the inverse of the \(\mbox{erf}\) function. Required header: Members Functions
Definition: value.hpp:103 Parameters Return value Returns elementwise The result type is of the same type as the parameter. The function returns Nan outside of the interval \([-1,1]\). auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::erf_inv Parameters
Return value A Callable object so that the expression Supported decorators
ExampleSee it live on Compiler Explorer #include <eve/function/erf_inv.hpp>
#include <eve/wide.hpp>
#include <iostream>
using wide_ft = eve::wide <float, eve::fixed<4>>;
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;
}
constexpr callable_erf_inv_ erf_inv Callable object computing the inverse of the function. Definition: erf_inv.hpp:79 |