Classes | |
| class | PrintForVector |
Functions | |
| template<class C> | |
| C | vectorMin (std::vector< C > &v) |
| template<class C> | |
| C | vectorMax (std::vector< C > &v) |
| double | round (double x) |
| double | safeLog (double x) |
| double | sqr (double x) |
| template<class C> | |
| void | FlushVector (std::vector< C > &v) |
| template<class Except, class Assertion> | |
| void | Assert (Assertion assert) |
| template<class To, class From> | |
| std::vector< To > | vector_cast (std::vector< From > &x) |
| double | round (const double x) |
| double | safeLog (const double x) |
| double | sqr (const double x) |
Variables | |
| const double | dbl_eps = std::numeric_limits<double>::epsilon() |
| minimum representable value of 1.0 - x | |
| const double | dbl_max = std::numeric_limits<double>::max() |
| maximum value of double | |
| const double | dbl_min = std::numeric_limits<double>::min() |
| minimum (positive) value of double | |
| const int | int_max = std::numeric_limits<int>::max() |
| maximum value of integer | |
| const int | int_min = std::numeric_limits<int>::min() |
| minimum value of integer | |
| const unsigned | uint_max = std::numeric_limits<unsigned>::max() |
| maximum value of unsigned integer | |
| const long | long_max = std::numeric_limits<long>::max() |
| maximum value of long integer | |
| const long | long_min = std::numeric_limits<long>::min() |
| minimum value of long integer | |
| const unsigned long | ulong_max = std::numeric_limits<unsigned long>::max() |
| maximum value of unsigned long integer | |
| const double | log_dbl_max = log(dbl_max) |
| log(dbl_max) | |
| const double | log_dbl_min = log(dbl_min) |
| log(dbl_min) | |
Provides a variety of numerical constants related to double precision and integer arithmetic, a small collection of utility functions, and for probability density functions.
| void Util::Assert | ( | Assertion | assert | ) | [inline] |
Assertion template for error checking
| assert | the assertion to check |
| void Util::FlushVector | ( | std::vector< C > & | v | ) |
| double Util::round | ( | const double | x | ) |
| double Util::round | ( | const double | x | ) |
| double Util::safeLog | ( | const double | x | ) |
Returns log_dbl_min if x < log_dbl_min
| x | The logarithm to check |
Definition at line 57 of file util.cpp.
References log_dbl_min.
Referenced by logQBeta(), logQDirch(), and logQNorm().
| double Util::safeLog | ( | const double | x | ) |
Returns log_dbl_min if x < log_dbl_min
| x | The logarithm to check |
Definition at line 57 of file util.cpp.
References log_dbl_min.
Referenced by logQBeta(), logQDirch(), and logQNorm().
| double Util::sqr | ( | const double | x | ) |
Returns 
| x |
Definition at line 66 of file util.cpp.
Referenced by keh::Accumulate< true, T >::Accumulate(), and keh::Accumulate< false, T >::Accumulate().
| double Util::sqr | ( | const double | x | ) |
Returns 
| x |
Definition at line 66 of file util.cpp.
Referenced by keh::Accumulate< false, T >::Accumulate(), and keh::Accumulate< true, T >::Accumulate().
| std::vector<To> Util::vector_cast | ( | std::vector< From > & | x | ) | [inline] |
| C Util::vectorMax | ( | std::vector< C > & | v | ) | [inline] |
| C Util::vectorMin | ( | std::vector< C > & | v | ) | [inline] |
1.5.1