E.V.E
v2023.02.15
Loading...
Searching...
No Matches
◆
gamma_p_inv
eve::gamma_p_inv =
functor
<gamma_p_inv_t>
inline
constexpr
Header file
#include <eve/module/special.hpp>
Callable Signatures
namespace
eve
{
// Regular overload
constexpr
auto
gamma_p_inv
(
floating_value
auto
x,
floating_value
auto
y)
noexcept
;
// 1
// Lanes masking
constexpr
auto
gamma_p_inv
[
conditional_expr
auto
c](
floating_value
auto
x,
floating_value
auto
y)
noexcept
;
// 2
constexpr
auto
gamma_p_inv
[
logical_value
auto
m](
floating_value
auto
x,
floating_value
auto
y)
noexcept
;
// 2
}
eve::conditional_expr
Specifies that a type is a Conditional Expression.
Definition:
conditional.hpp:27
eve::floating_value
The concept floating_value<T> is satisfied if and only if T satisfies eve::value and the element type...
Definition:
value.hpp:95
eve::logical_value
The concept logical_value<T> is satisfied if and only if T satisfies eve::value and the element type ...
Definition:
value.hpp:107
eve::gamma_p_inv
constexpr auto gamma_p_inv
elementwise_callable object computing the inverse of the normalized lower incomplete function.
Definition:
gamma_p_inv.hpp:80
eve
EVE Main Namespace.
Definition:
abi.hpp:18
Parameters
x
,
y
:
floating value
.
c
: Conditional expression masking the operation.
m
: Logical value masking the operation.
Return value
The value of the inverse of the normalized lower incomplete \(\Gamma\) function relative to the first parameter is returned.
The operation is performed conditionnaly
.
External references
Wikipedia: Incomplete gamma function
DLMF
Example
// revision 1
#include <eve/module/special.hpp>
#include <iostream>
int
main()
{
eve::wide
wk = {1.0e-3, 0.3, 0.75, 5.5};
eve::wide
wp = {10.0, 0.5, 20.7, 1.0};
std::cout <<
"<- wk = "
<< wk <<
"\n"
;
std::cout <<
"<- wp = "
<< wp <<
"\n"
;
std::cout <<
"-> gamma_p(wk, wp) = "
<<
eve::gamma_p
(wk, wp) <<
"\n"
;
std::cout <<
"-> gamma_p[ignore_last(2)](wk, wp)= "
<<
eve::gamma_p
[
eve::ignore_last
(2)](wk, wp) <<
"\n"
;
std::cout <<
"-> gamma_p[wk > 0.5](wk, wp) = "
<<
eve::gamma_p
[wk > 0.5](wk, wp) <<
"\n"
;
}
eve::gamma_p
constexpr auto gamma_p
elementwise_callable object computing the normalized lower incomplete function.
Definition:
gamma_p.hpp:77
eve::ignore_last
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition:
conditional.hpp:304
eve::wide
Wrapper for SIMD registers.
Definition:
wide.hpp:71
eve