◆ gamma_p_inv
Callable object computing the normalized lower incomplete \(\Gamma\) function. Required header: #include <eve/function/gamma_p_inv.hpp>
Members Functions
Definition: value.hpp:103 Parameters
Return value Returns elementwise computes the inverse of normalized lower incomplete \(\Gamma\) function : \(\displaystyle \frac{1}{\Gamma(x)}\int_0^{y} t^{x-1}e^{-t}\mbox{d}t\) The result type is the common compatible type of the two parameters. auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::gamma_p_inv Parameters
Return value A Callable object so that the expression Supported decoratorsno decorators are supported ExampleSee it live on Compiler Explorer #include <iostream>
#include <iomanip>
#include <eve/function/gamma_p_inv.hpp>
#include <eve/function/gamma_p.hpp>
#include <eve/wide.hpp>
using wide_ft = eve::wide<float, eve::fixed<4>>;
int main()
{
wide_ft k = {1.0e-3f, 0.3f, 0.75f, 5.5f};
wide_ft p = {0.0f, 0.1f, 0.7f, 1.0f};
std::cout << "---- simd" << '\n'
<< "<- p = " << p << '\n'
<< "<- k = " << k << '\n'
float kf = 0.1;
float pf = 0.3;
std::cout << "---- scalar" << '\n'
<< "<- kf = " << kf << '\n'
<< "<- pf = " << pf<< '\n'
return 0;
}
constexpr callable_gamma_p_inv_ gamma_p_inv Callable object computing the normalized lower incomplete function. Definition: gamma_p_inv.hpp:83 |