|
glucat
0.8.2
|
Extra traits which extend numeric limits. More...
#include <scalar.h>
Classes | |
| struct | demoted |
| Demoted type for long double. More... | |
| struct | promoted |
| Promoted type. More... | |
Public Member Functions | |
| template<> | |
| long double | pi () |
| Pi for long double. More... | |
| template<> | |
| long double | ln_2 () |
| log(2) for long double More... | |
| template<> | |
| float | to_scalar_t (const Other_Scalar_T &val) |
| Extra traits which extend numeric limits. More... | |
| template<> | |
| double | to_scalar_t (const Other_Scalar_T &val) |
| Cast to double. More... | |
| template<> | |
| long double | to_scalar_t (const dd_real &val) |
| Cast to long double. More... | |
| template<> | |
| long double | to_scalar_t (const qd_real &val) |
| Cast to long double. More... | |
| template<> | |
| dd_real | to_scalar_t (const long double &val) |
| Cast to dd_real. More... | |
| template<> | |
| dd_real | to_scalar_t (const qd_real &val) |
| Cast to dd_real. More... | |
| template<> | |
| qd_real | to_scalar_t (const long double &val) |
| Cast to qd_real. More... | |
| template<> | |
| qd_real | to_scalar_t (const dd_real &val) |
| Cast to qd_real. More... | |
Static Public Member Functions | |
| static bool | isInf (const Scalar_T &val) |
| Smart isinf. More... | |
| static bool | isNaN (const Scalar_T &val) |
| Smart isnan. More... | |
| static bool | isNaN_or_isInf (const Scalar_T &val) |
| Smart isnan or isinf. More... | |
| static Scalar_T | NaN () |
| Smart NaN. More... | |
| static int | to_int (const Scalar_T &val) |
| Cast to int. More... | |
| static double | to_double (const Scalar_T &val) |
| Cast to double. More... | |
| template<typename Other_Scalar_T > | |
| static Scalar_T | to_scalar_t (const Other_Scalar_T &val) |
| Cast to Scalar_T. More... | |
| static Scalar_T | fmod (const Scalar_T &lhs, const Scalar_T &rhs) |
| Modulo function for scalar. More... | |
| static Scalar_T | conj (const Scalar_T &val) |
| Complex conjugate of scalar. More... | |
| static Scalar_T | real (const Scalar_T &val) |
| Real part of scalar. More... | |
| static Scalar_T | imag (const Scalar_T &val) |
| Imaginary part of scalar. More... | |
| static Scalar_T | abs (const Scalar_T &val) |
| Absolute value of scalar. More... | |
| static Scalar_T | pi () |
| Pi. More... | |
| static Scalar_T | ln_2 () |
| log(2) More... | |
| static Scalar_T | pow (const Scalar_T &val, int n) |
| Integer power. More... | |
| static Scalar_T | sqrt (const Scalar_T &val) |
| Square root of scalar. More... | |
| static Scalar_T | exp (const Scalar_T &val) |
| Exponential. More... | |
| static Scalar_T | log (const Scalar_T &val) |
| Logarithm of scalar. More... | |
| static Scalar_T | log2 (const Scalar_T &val) |
| Log base 2. More... | |
| static Scalar_T | cos (const Scalar_T &val) |
| Cosine of scalar. More... | |
| static Scalar_T | acos (const Scalar_T &val) |
| Inverse cosine of scalar. More... | |
| static Scalar_T | cosh (const Scalar_T &val) |
| Hyperbolic cosine of scalar. More... | |
| static Scalar_T | sin (const Scalar_T &val) |
| Sine of scalar. More... | |
| static Scalar_T | asin (const Scalar_T &val) |
| Inverse sine of scalar. More... | |
| static Scalar_T | sinh (const Scalar_T &val) |
| Hyperbolic sine of scalar. More... | |
| static Scalar_T | tan (const Scalar_T &val) |
| Tangent of scalar. More... | |
| static Scalar_T | atan (const Scalar_T &val) |
| Inverse tangent of scalar. More... | |
| static Scalar_T | tanh (const Scalar_T &val) |
| Hyperbolic tangent of scalar. More... | |
Static Private Member Functions | |
| static bool | isInf (const Scalar_T &val, bool_to_type< false >) |
| Smart isinf specialised for Scalar_T without infinity. More... | |
| static bool | isInf (const Scalar_T &val, bool_to_type< true >) |
| Smart isinf specialised for Scalar_T with infinity. More... | |
| static bool | isNaN (const Scalar_T &val, bool_to_type< false >) |
| Smart isnan specialised for Scalar_T without quiet NaN. More... | |
| static bool | isNaN (const Scalar_T &val, bool_to_type< true >) |
| Smart isnan specialised for Scalar_T with quiet NaN. More... | |
Extra traits which extend numeric limits.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestaticprivate |
Smart isinf specialised for Scalar_T without infinity.
Definition at line 53 of file scalar.h.
Referenced by glucat::numeric_traits< Scalar_T >::isInf(), and glucat::numeric_traits< Scalar_T >::isNaN_or_isInf().
|
inlinestaticprivate |
Smart isinf specialised for Scalar_T with infinity.
Definition at line 60 of file scalar.h.
References _GLUCAT_ISINF.
|
inlinestatic |
Smart isinf.
Definition at line 82 of file scalar.h.
References glucat::numeric_traits< Scalar_T >::isInf().
|
inlinestaticprivate |
Smart isnan specialised for Scalar_T without quiet NaN.
Definition at line 67 of file scalar.h.
Referenced by glucat::numeric_traits< Scalar_T >::isNaN(), and glucat::numeric_traits< Scalar_T >::isNaN_or_isInf().
|
inlinestaticprivate |
Smart isnan specialised for Scalar_T with quiet NaN.
Definition at line 74 of file scalar.h.
References _GLUCAT_ISNAN.
|
inlinestatic |
Smart isnan.
Definition at line 92 of file scalar.h.
References glucat::numeric_traits< Scalar_T >::isNaN().
|
inlinestatic |
Smart isnan or isinf.
Definition at line 102 of file scalar.h.
References glucat::numeric_traits< Scalar_T >::isInf(), and glucat::numeric_traits< Scalar_T >::isNaN().
|
inline |
|
inlinestatic |
log(2)
Definition at line 195 of file scalar.h.
Referenced by glucat::numeric_traits< Scalar_T >::log2().
|
inlinestatic |
Logarithm of scalar.
Definition at line 223 of file scalar.h.
References glucat::log().
Referenced by glucat::numeric_traits< Scalar_T >::log2().
|
inlinestatic |
Log base 2.
Definition at line 230 of file scalar.h.
References glucat::numeric_traits< Scalar_T >::ln_2(), and glucat::numeric_traits< Scalar_T >::log().
Referenced by glucat::log2().
|
inlinestatic |
Smart NaN.
Definition at line 114 of file scalar.h.
References glucat::log().
Referenced by glucat::matrix::trace().
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Square root of scalar.
Definition at line 209 of file scalar.h.
References UBLAS_SQRT.
Referenced by glucat::abs().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Cast to double.
Definition at line 132 of file scalar.h.
Referenced by glucat::operator<<(), and glucat::numeric_traits< Scalar_T >::to_scalar_t().
|
inlinestatic |
|
inline |
Extra traits which extend numeric limits.
Cast to float
Definition at line 52 of file scalar_imp.h.
References glucat::numeric_traits< Scalar_T >::to_double().
|
inline |
Cast to double.
Definition at line 61 of file scalar_imp.h.
References glucat::numeric_traits< Scalar_T >::to_double().
|
inline |
Cast to long double.
Definition at line 71 of file scalar_imp.h.
|
inline |
Cast to long double.
Definition at line 80 of file scalar_imp.h.
|
inline |
Cast to dd_real.
Definition at line 89 of file scalar_imp.h.
|
inline |
Cast to dd_real.
Definition at line 98 of file scalar_imp.h.
|
inline |
Cast to qd_real.
Definition at line 107 of file scalar_imp.h.
|
inline |
Cast to qd_real.
Definition at line 116 of file scalar_imp.h.
|
inlinestatic |
Cast to Scalar_T.
Definition at line 140 of file scalar.h.
Referenced by glucat::matrix::nork_range(), glucat::to_demote(), and glucat::to_promote().
1.8.14