glucat
0.8.4
|
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 | |
long double | pi () |
Pi for long double. More... | |
long double | ln_2 () |
log(2) for long double More... | |
float | to_scalar_t (const Other_Scalar_T &val) |
Extra traits which extend numeric limits. More... | |
double | to_scalar_t (const Other_Scalar_T &val) |
Cast to double. More... | |
long double | to_scalar_t (const dd_real &val) |
Cast to long double. More... | |
long double | to_scalar_t (const qd_real &val) |
Cast to long double. More... | |
dd_real | to_scalar_t (const long double &val) |
Cast to dd_real. More... | |
dd_real | to_scalar_t (const qd_real &val) |
Cast to dd_real. More... | |
qd_real | to_scalar_t (const long double &val) |
Cast to qd_real. More... | |
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 |
Inverse cosine of scalar.
Definition at line 302 of file scalar.h.
References glucat::numeric_traits< Scalar_T >::log2().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestatic |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestatic |
|
inline |
log(2) for long double
Definition at line 111 of file long_double.h.
|
inlinestatic |
log(2)
Definition at line 253 of file scalar.h.
References glucat::sin().
Referenced by glucat::numeric_traits< Scalar_T >::real().
|
inlinestatic |
Logarithm of scalar.
Definition at line 281 of file scalar.h.
References glucat::atan().
Referenced by glucat::numeric_traits< Scalar_T >::real().
|
inlinestatic |
Log base 2.
Definition at line 288 of file scalar.h.
References glucat::tanh().
Referenced by glucat::numeric_traits< Scalar_T >::acos().
|
inlinestatic |
Smart NaN.
Definition at line 172 of file scalar.h.
Referenced by glucat::matrix::prod(), and glucat::matrix::sparse_prod().
|
inline |
Pi for long double.
Definition at line 103 of file long_double.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Real part of scalar.
Definition at line 225 of file scalar.h.
References glucat::numeric_traits< Scalar_T >::ln_2(), and glucat::numeric_traits< Scalar_T >::log().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Square root of scalar.
Definition at line 267 of file scalar.h.
References glucat::sinh().
Referenced by glucat::reverse().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
Cast to long double.
Definition at line 99 of file scalar_imp.h.
|
inline |
Cast to qd_real.
Definition at line 144 of file scalar_imp.h.
|
inline |
Cast to dd_real.
Definition at line 117 of file scalar_imp.h.
|
inline |
Cast to qd_real.
Definition at line 135 of file scalar_imp.h.
References glucat::numeric_traits< Scalar_T >::to_scalar_t().
|
inline |
|
inline |
Cast to double.
Definition at line 89 of file scalar_imp.h.
|
inlinestatic |
Cast to Scalar_T.
Definition at line 198 of file scalar.h.
Referenced by glucat::matrix_multi< Scalar_T, LO, HI >::matrix_multi(), and glucat::numeric_traits< Scalar_T >::to_scalar_t().
|
inline |
Cast to long double.
Definition at line 108 of file scalar_imp.h.
|
inline |
Cast to dd_real.
Definition at line 126 of file scalar_imp.h.