◆ rising_factorial
Callable object computing rising_factorial function i.e. \(\frac{\Gamma(x+a)}{\Gamma(a)}\). Required header: Members Functions
Definition: value.hpp:103 Definition: value.hpp:93 Parameters
Return value auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::rising_factorial Parameters
Return value A Callable object so that the expression Supported decorators
ExampleSee it live on Compiler Explorer #include <eve/function/pedantic/rising_factorial.hpp>
#include <eve/wide.hpp>
#include <iostream>
#include <iomanip>
int main()
{
using w32_t = eve::wide<std::int32_t, eve::fixed<4>>;
using wf_t = eve::wide<float, eve::fixed<4>>;
w32_t n = {1, 2, -3, 7};
wf_t x = {1.0f, 1.5f, 2.0f, 2.5f};
std::cout << "---- simd" << std::setprecision(17) << '\n'
<< " <- n = " << n << '\n'
<< " <- x = " << x << '\n'
double xi = 1.8;
std::cout << "---- scalar" << '\n'
<< " xi = " << xi << '\n'
return 0;
}
constexpr callable_rising_factorial_ rising_factorial Callable object computing rising_factorial function i.e. . Definition: rising_factorial.hpp:98 constexpr pedantic_type const pedantic Higher-order Callable Object imbuing more standard semantic onto other Callable Objects. Definition: pedantic.hpp:56 |