E.V.E  0.1-beta

◆ gamma_p_inv

eve::gamma_p_inv = {}
inlineconstexpr

Callable object computing the normalized lower incomplete \(\Gamma\) function.

Required header:

#include <eve/function/gamma_p_inv.hpp>

Members Functions

Member Effect
operator() the gamma_p_inv operation
operator[] Construct a conditional version of current function object

auto operator()( floating_real_value auto x, floating_real_value auto y) const noexcept;
Definition: value.hpp:103

Parameters

x, y: floating real value.

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

cond : conditional expression

Return value

A Callable object so that the expression gamma_p_inv[cond](x, ...) is equivalent to if_else(cond,gamma_p_inv(x, ...),x)


Supported decorators

no decorators are supported

Example

See 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>
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'
<< "-> gamma_p_inv(p, k) = " << eve::gamma_p_inv(p, k) << '\n';
float kf = 0.1;
float pf = 0.3;
std::cout << "---- scalar" << '\n'
<< "<- kf = " << kf << '\n'
<< "<- pf = " << pf<< '\n'
<< "-> gamma_p_inv(pf, kf) = " << eve::gamma_p_inv(pf, kf) << '\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
Wrapper for SIMD registers.
Definition: wide.hpp:65