Eigen::numext Namespace Reference

Classes

struct  equal_strict_impl
 
struct  equal_strict_impl< X, Y, true, false, true, true >
 
struct  equal_strict_impl< X, Y, true, true, true, false >
 
struct  get_integer_by_size
 
struct  get_integer_by_size< 1 >
 
struct  get_integer_by_size< 2 >
 
struct  get_integer_by_size< 4 >
 
struct  get_integer_by_size< 8 >
 
struct  signbit_impl
 
struct  signbit_impl< Scalar, false, true >
 
struct  signbit_impl< Scalar, true, false >
 
struct  signbit_impl< Scalar, true, true >
 

Typedefs

typedef std::int16_t int16_t
 
typedef std::int32_t int32_t
 
typedef std::int64_t int64_t
 
typedef std::int8_t int8_t
 
typedef std::uint16_t uint16_t
 
typedef std::uint32_t uint32_t
 
typedef std::uint64_t uint64_t
 
typedef std::uint8_t uint8_t
 

Functions

EIGEN_ALWAYS_INLINE std::enable_if_t< NumTraits< T >::IsSigned||NumTraits< T >::IsComplex, typename NumTraits< T >::Real > abs (const T &x)
 
bool abs2 (bool x)
 
EIGEN_ALWAYS_INLINE double absdiff (const double &x, const double &y)
 
EIGEN_ALWAYS_INLINE float absdiff (const float &x, const float &y)
 
EIGEN_ALWAYS_INLINE long double absdiff (const long double &x, const long double &y)
 
EIGEN_ALWAYS_INLINE T absdiff (const T &x, const T &y)
 
EIGEN_ALWAYS_INLINE T acos (const T &x)
 
EIGEN_ALWAYS_INLINE T acosh (const T &x)
 
EIGEN_ALWAYS_INLINE T asin (const T &x)
 
EIGEN_ALWAYS_INLINE T asinh (const T &x)
 
EIGEN_ALWAYS_INLINE T atan (const T &x)
 
EIGEN_ALWAYS_INLINE T atan2 (const T &y, const T &x)
 
EIGEN_ALWAYS_INLINE T atanh (const T &x)
 
Tgt bit_cast (const Src &src)
 
Eigen::bfloat16 bit_cast< Eigen::bfloat16, uint16_t > (const uint16_t &src)
 
Eigen::half bit_cast< Eigen::half, uint16_t > (const uint16_t &src)
 
uint16_t bit_cast< uint16_t, Eigen::bfloat16 > (const Eigen::bfloat16 &src)
 
uint16_t bit_cast< uint16_t, Eigen::half > (const Eigen::half &src)
 
Scalar() ceil (const Scalar &x)
 
EIGEN_ALWAYS_INLINE T cos (const T &x)
 
EIGEN_ALWAYS_INLINE T cosh (const T &x)
 
T div_ceil (const T &a, const T &b)
 
 EIGEN_MATHFUNC_RETVAL (abs2, Scalar) abs2(const Scalar &x)
 
 EIGEN_MATHFUNC_RETVAL (arg, Scalar) arg(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (bessel_i0, Scalar) bessel_i0(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (bessel_i0e, Scalar) bessel_i0e(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (bessel_i1, Scalar) bessel_i1(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (bessel_i1e, Scalar) bessel_i1e(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (bessel_j0, Scalar) bessel_j0(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (bessel_j1, Scalar) bessel_j1(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (bessel_k0, Scalar) bessel_k0(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (bessel_k0e, Scalar) bessel_k0e(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (bessel_k1, Scalar) bessel_k1(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (bessel_k1e, Scalar) bessel_k1e(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (bessel_y0, Scalar) bessel_y0(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (bessel_y1, Scalar) bessel_y1(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (betainc, Scalar) betainc(const Scalar &a
 
 EIGEN_MATHFUNC_RETVAL (conj, Scalar) conj(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (digamma, Scalar) digamma(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (erf, Scalar) erf(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (erfc, Scalar) erfc(const Scalar &x)
 
 EIGEN_MATHFUNC_RETVAL (expm1, Scalar) expm1(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (gamma_sample_der_alpha, Scalar) gamma_sample_der_alpha(const Scalar &a
 
 EIGEN_MATHFUNC_RETVAL (hypot, Scalar) hypot(const Scalar &x
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (igamma, Scalar) igamma(const Scalar &a
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (igamma_der_a, Scalar) igamma_der_a(const Scalar &a
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (igammac, Scalar) igammac(const Scalar &a
 
 EIGEN_MATHFUNC_RETVAL (imag, Scalar) imag(const Scalar &x)
 
 EIGEN_MATHFUNC_RETVAL (imag_ref, Scalar) imag_ref(Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (lgamma, Scalar) lgamma(const Scalar &x)
 
 EIGEN_MATHFUNC_RETVAL (log1p, Scalar) log1p(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (ndtri, Scalar) ndtri(const Scalar &x)
 
 EIGEN_MATHFUNC_RETVAL (norm1, Scalar) norm1(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (polygamma, Scalar) polygamma(const Scalar &n
 
 EIGEN_MATHFUNC_RETVAL (real, Scalar) real(const Scalar &x)
 
 EIGEN_MATHFUNC_RETVAL (real_ref, Scalar) real_ref(Scalar &x)
 
 EIGEN_MATHFUNC_RETVAL (sign, Scalar) sign(const Scalar &x)
 
EIGEN_ALWAYS_INLINE EIGEN_MATHFUNC_RETVAL (sqrt, Scalar) sqrt(const Scalar &x)
 
template<typename Scalar >
 EIGEN_MATHFUNC_RETVAL (zeta, Scalar) zeta(const Scalar &x
 
bool equal_strict (const double &x, const double &y)
 
bool equal_strict (const float &x, const float &y)
 
bool equal_strict (const X &x, const Y &y)
 
EIGEN_ALWAYS_INLINE T exp (const T &x)
 
Scalar() floor (const Scalar &x)
 
EIGEN_ALWAYS_INLINE T fmod (const T &a, const T &b)
 
internal::add_const_on_value_type_t< EIGEN_MATHFUNC_RETVAL(imag_ref, Scalar) > imag_ref (const Scalar &x)
 
bool is_exactly_one (const X &x)
 
bool is_exactly_zero (const X &x)
 
EIGEN_ALWAYS_INLINE bool() isfinite (const Eigen::bfloat16 &h)
 
bool() isfinite (const T &x)
 
EIGEN_ALWAYS_INLINE bool() isinf (const Eigen::bfloat16 &h)
 
bool() isinf (const T &x)
 
EIGEN_ALWAYS_INLINE bool() isnan (const Eigen::bfloat16 &h)
 
bool() isnan (const T &x)
 
EIGEN_ALWAYS_INLINE T log (const T &x)
 
int log2 (int x)
 
EIGEN_ALWAYS_INLINE T maxi (const T &x, const T &y)
 
EIGEN_ALWAYS_INLINE T mini (const T &x, const T &y)
 
bool not_equal_strict (const double &x, const double &y)
 
bool not_equal_strict (const float &x, const float &y)
 
bool not_equal_strict (const X &x, const Y &y)
 
internal::pow_impl< ScalarX, ScalarY >::result_type pow (const ScalarX &x, const ScalarY &y)
 
internal::add_const_on_value_type_t< EIGEN_MATHFUNC_RETVAL(real_ref, Scalar) > real_ref (const Scalar &x)
 
Scalar rint (const Scalar &x)
 
Scalar round (const Scalar &x)
 
EIGEN_ALWAYS_INLINE T rsqrt (const T &x)
 
static constexpr EIGEN_ALWAYS_INLINE Scalar signbit (const Scalar &x)
 
EIGEN_ALWAYS_INLINE T sin (const T &x)
 
EIGEN_ALWAYS_INLINE T sinh (const T &x)
 
EIGEN_ALWAYS_INLINE double sqrt (const double &x)
 
EIGEN_ALWAYS_INLINE float sqrt (const float &x)
 
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS bool sqrt< bool > (const bool &x)
 
void swap (T &a, T &b)
 
EIGEN_ALWAYS_INLINE T tan (const T &x)
 
EIGEN_ALWAYS_INLINE T tanh (const T &x)
 

Variables

const Scalar & b
 
const Scalar & q
 
const Scalar & x
 
const Scalar & y
 

Function Documentation

◆ EIGEN_MATHFUNC_RETVAL() [1/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( bessel_i0  ,
Scalar   
) const &
inline

Definition at line 1886 of file BesselFunctionsImpl.h.

1887  {
1888  return EIGEN_MATHFUNC_IMPL(bessel_i0, Scalar)::run(x);
1889 }
#define EIGEN_MATHFUNC_IMPL(func, scalar)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_i0_op< typename Derived::Scalar >, const Derived > bessel_i0(const Eigen::ArrayBase< Derived > &x)

◆ EIGEN_MATHFUNC_RETVAL() [2/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( bessel_i0e  ,
Scalar   
) const &
inline

Definition at line 1892 of file BesselFunctionsImpl.h.

1893  {
1894  return EIGEN_MATHFUNC_IMPL(bessel_i0e, Scalar)::run(x);
1895 }
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_i0e_op< typename Derived::Scalar >, const Derived > bessel_i0e(const Eigen::ArrayBase< Derived > &x)

◆ EIGEN_MATHFUNC_RETVAL() [3/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( bessel_i1  ,
Scalar   
) const &
inline

Definition at line 1898 of file BesselFunctionsImpl.h.

1899  {
1900  return EIGEN_MATHFUNC_IMPL(bessel_i1, Scalar)::run(x);
1901 }
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_i1_op< typename Derived::Scalar >, const Derived > bessel_i1(const Eigen::ArrayBase< Derived > &x)

◆ EIGEN_MATHFUNC_RETVAL() [4/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( bessel_i1e  ,
Scalar   
) const &
inline

Definition at line 1904 of file BesselFunctionsImpl.h.

1905  {
1906  return EIGEN_MATHFUNC_IMPL(bessel_i1e, Scalar)::run(x);
1907 }
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_i1e_op< typename Derived::Scalar >, const Derived > bessel_i1e(const Eigen::ArrayBase< Derived > &x)

◆ EIGEN_MATHFUNC_RETVAL() [5/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( bessel_j0  ,
Scalar   
) const &
inline

Definition at line 1934 of file BesselFunctionsImpl.h.

1935  {
1936  return EIGEN_MATHFUNC_IMPL(bessel_j0, Scalar)::run(x);
1937 }
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_j0_op< typename Derived::Scalar >, const Derived > bessel_j0(const Eigen::ArrayBase< Derived > &x)

◆ EIGEN_MATHFUNC_RETVAL() [6/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( bessel_j1  ,
Scalar   
) const &
inline

Definition at line 1946 of file BesselFunctionsImpl.h.

1947  {
1948  return EIGEN_MATHFUNC_IMPL(bessel_j1, Scalar)::run(x);
1949 }
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_j1_op< typename Derived::Scalar >, const Derived > bessel_j1(const Eigen::ArrayBase< Derived > &x)

◆ EIGEN_MATHFUNC_RETVAL() [7/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( bessel_k0  ,
Scalar   
) const &
inline

Definition at line 1910 of file BesselFunctionsImpl.h.

1911  {
1912  return EIGEN_MATHFUNC_IMPL(bessel_k0, Scalar)::run(x);
1913 }
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_k0_op< typename Derived::Scalar >, const Derived > bessel_k0(const Eigen::ArrayBase< Derived > &x)

◆ EIGEN_MATHFUNC_RETVAL() [8/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( bessel_k0e  ,
Scalar   
) const &
inline

Definition at line 1916 of file BesselFunctionsImpl.h.

1917  {
1918  return EIGEN_MATHFUNC_IMPL(bessel_k0e, Scalar)::run(x);
1919 }
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_k0e_op< typename Derived::Scalar >, const Derived > bessel_k0e(const Eigen::ArrayBase< Derived > &x)

◆ EIGEN_MATHFUNC_RETVAL() [9/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( bessel_k1  ,
Scalar   
) const &
inline

Definition at line 1922 of file BesselFunctionsImpl.h.

1923  {
1924  return EIGEN_MATHFUNC_IMPL(bessel_k1, Scalar)::run(x);
1925 }
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_k1_op< typename Derived::Scalar >, const Derived > bessel_k1(const Eigen::ArrayBase< Derived > &x)

◆ EIGEN_MATHFUNC_RETVAL() [10/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( bessel_k1e  ,
Scalar   
) const &
inline

Definition at line 1928 of file BesselFunctionsImpl.h.

1929  {
1930  return EIGEN_MATHFUNC_IMPL(bessel_k1e, Scalar)::run(x);
1931 }
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_k1e_op< typename Derived::Scalar >, const Derived > bessel_k1e(const Eigen::ArrayBase< Derived > &x)

◆ EIGEN_MATHFUNC_RETVAL() [11/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( bessel_y0  ,
Scalar   
) const &
inline

Definition at line 1940 of file BesselFunctionsImpl.h.

1941  {
1942  return EIGEN_MATHFUNC_IMPL(bessel_y0, Scalar)::run(x);
1943 }
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_y0_op< typename Derived::Scalar >, const Derived > bessel_y0(const Eigen::ArrayBase< Derived > &x)

◆ EIGEN_MATHFUNC_RETVAL() [12/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( bessel_y1  ,
Scalar   
) const &
inline

Definition at line 1952 of file BesselFunctionsImpl.h.

1953  {
1954  return EIGEN_MATHFUNC_IMPL(bessel_y1, Scalar)::run(x);
1955 }
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_bessel_y1_op< typename Derived::Scalar >, const Derived > bessel_y1(const Eigen::ArrayBase< Derived > &x)

◆ EIGEN_MATHFUNC_RETVAL() [13/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( betainc  ,
Scalar   
) const &
inline

◆ EIGEN_MATHFUNC_RETVAL() [14/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( digamma  ,
Scalar   
) const &
inline

Definition at line 1984 of file SpecialFunctionsImpl.h.

1985  {
1986  return EIGEN_MATHFUNC_IMPL(digamma, Scalar)::run(x);
1987 }

◆ EIGEN_MATHFUNC_RETVAL() [15/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( erf  ,
Scalar   
) const &
inline

Definition at line 2002 of file SpecialFunctionsImpl.h.

2003  {
2004  return EIGEN_MATHFUNC_IMPL(erf, Scalar)::run(x);
2005 }

◆ EIGEN_MATHFUNC_RETVAL() [16/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( erfc  ,
Scalar   
) const &
inline

Definition at line 2008 of file SpecialFunctionsImpl.h.

2009  {
2010  return EIGEN_MATHFUNC_IMPL(erfc, Scalar)::run(x);
2011 }

◆ EIGEN_MATHFUNC_RETVAL() [17/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( gamma_sample_der_alpha  ,
Scalar   
) const &
inline

◆ EIGEN_MATHFUNC_RETVAL() [18/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( igamma  ,
Scalar   
) const &
inline

◆ EIGEN_MATHFUNC_RETVAL() [19/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( igamma_der_a  ,
Scalar   
) const &
inline

◆ EIGEN_MATHFUNC_RETVAL() [20/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( igammac  ,
Scalar   
) const &
inline

◆ EIGEN_MATHFUNC_RETVAL() [21/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( lgamma  ,
Scalar   
) const &
inline

Definition at line 1978 of file SpecialFunctionsImpl.h.

1979  {
1980  return EIGEN_MATHFUNC_IMPL(lgamma, Scalar)::run(x);
1981 }

◆ EIGEN_MATHFUNC_RETVAL() [22/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( ndtri  ,
Scalar   
) const &
inline

Definition at line 2014 of file SpecialFunctionsImpl.h.

2015  {
2016  return EIGEN_MATHFUNC_IMPL(ndtri, Scalar)::run(x);
2017 }

◆ EIGEN_MATHFUNC_RETVAL() [23/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( polygamma  ,
Scalar   
) const &
inline

◆ EIGEN_MATHFUNC_RETVAL() [24/24]

template<typename Scalar >
Eigen::numext::EIGEN_MATHFUNC_RETVAL ( zeta  ,
Scalar   
) const &
inline

Variable Documentation

◆ b

const Scalar& Eigen::numext::b

Definition at line 2045 of file SpecialFunctionsImpl.h.

◆ q

const Scalar& Eigen::numext::q

Definition at line 1991 of file SpecialFunctionsImpl.h.

◆ x

const Scalar const Scalar & Eigen::numext::x