◆ digamma
Callable object computing logarithmic derivative of the \(\Gamma\) function. Required header: Members Functions
template< value T > auto operator()( T x) const noexcept;
Parameters
Return value Returns elementwise the value the logarithmic derivative of the \(\Gamma\) function. The result type is of the same type as the parameter. auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::digamma Parameters
Return value A Callable object so that the expression Supported decorators
ExampleSee it live on Compiler Explorer #include <eve/function/digamma.hpp>
#include <eve/wide.hpp>
#include <eve/constant/inf.hpp>
#include <eve/constant/minf.hpp>
#include <eve/constant/nan.hpp>
#include <iostream>
using wide_ft = eve::wide<double, eve::fixed<8>>;
int main()
{
wide_ft pd = {0.5, -1.5, 0.1, -1.0, 19.0, 25.0, 21.5, 10000.0};
std::cout << "---- simd" << '\n'
<< "<- pd = " << pd << '\n'
double xd = -1.0;
std::cout << "---- scalar" << '\n'
<< "<- xd = " << xd << '\n'
return 0;
}
constexpr callable_digamma_ digamma Callable object computing logarithmic derivative of the function. Definition: digamma.hpp:79 |