E.V.E
v2023.02.15
Loading...
Searching...
No Matches
◆
gamma_p
eve::gamma_p = functor<gamma_p_t>
inline
constexpr
Header file
#include <eve/module/special.hpp>
Callable Signatures
namespace
eve
{
// Regular overload
constexpr
auto
gamma_p
(
floating_value
auto
x
,
floating_value
auto
y
)
noexcept
;
// 1
// Lanes masking
constexpr
auto
gamma_p
[
conditional_expr
auto
c
](
floating_value
auto
x
,
floating_value
auto
y
)
noexcept
;
// 2
constexpr
auto
gamma_p
[
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:28
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:116
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:134
eve::gamma_p
constexpr auto gamma_p
elementwise_callable object computing the normalized lower incomplete function.
Definition
gamma_p.hpp:77
eve::translate_t
typename decltype(detail::as_translated_type(as< T >{}))::type translate_t
Returns the final translated type of T.
Definition
translation.hpp:107
eve
EVE Main Namespace.
Definition
abi.hpp:19
Parameters
x
,
y
:
floating value
.
c
:
Conditional expression
masking the operation.
m
:
Logical value
masking the operation.
Return value
The value of the normalized lower incomplete \(\Gamma\) function: \(\displaystyle \frac{1}{\Gamma(x)}\int_0^{y} t^{x-1}e^{-t}\mbox{d}t\) 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::ignore_last
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition
conditional.hpp:320
eve::wide
Wrapper for SIMD registers.
Definition
wide.hpp:94
eve