Eigen-Contrib  5.0.1-dev+master
 
Loading...
Searching...
No Matches
Special math functions module

This module features additional coefficient-wise math functions available within the numext:: namespace for the scalar version, and as method and/or free functions of Array. Those include:

Bessel Functions

The implementations are tuned for float and double, so they do not carry over to an arbitrary scalar. For any other scalar type, each function calls the overload of the same name that the type declares in its own namespace, where argument-dependent lookup finds it; erf, erfc and lgamma also use the ones in namespace std, which cover long double. Such an overload must not call the numext function of the same name on its own type, since that calls the overload back.

Without an overload, ndtri uses Eigen's generic implementation. erf, erfc, lgamma, digamma, zeta, polygamma, betainc and the Bessel functions reject the scalar type at compile time. igamma, igammac, igamma_der_a and gamma_sample_der_alpha compile only if lgamma (and, for the derivatives, digamma) does, and their convergence constants are defined only for float and double: for any other type they fail an eigen_assert at run time.

#include <contrib/Eigen/SpecialFunctions>