E.V.E
v2023.02.15
 
Loading...
Searching...
No Matches

◆ gamma_p

auto eve::gamma_p = functor<gamma_p_t>
inlineconstexpr

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
}
Specifies that a type is a Conditional Expression.
Definition conditional.hpp:28
The concept floating_value<T> is satisfied if and only if T satisfies eve::value and the element type...
Definition value.hpp:116
The concept logical_value<T> is satisfied if and only if T satisfies eve::value and the element type ...
Definition value.hpp:132
constexpr auto gamma_p
elementwise_callable object computing the normalized lower incomplete function.
Definition gamma_p.hpp:77
EVE Main Namespace.
Definition abi.hpp:18

Parameters

Return value

  1. 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.
  2. The operation is performed conditionnaly.

External references

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";
}
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition conditional.hpp:332
Wrapper for SIMD registers.
Definition wide.hpp:70