Go to the SVN repository for this file.
1 #ifndef ALGO_BLAST_GUMBEL_PARAMS__INCLUDED_NJN_APPROX 2 #define ALGO_BLAST_GUMBEL_PARAMS__INCLUDED_NJN_APPROX 57template <typename
T> inline
bool approx(
Tx_,
Ty_,
Teps_);
58template <typename
T> inline
bool relApprox(
Tx_,
Ty_,
Teps_);
63template <typename
T> inline
bool eq(
Tx_,
Ty_,
Tround_);
64template <typename
T> inline
bool ge(
Tx_,
Ty_,
Tround_);
65template <typename
T> inline
bool gt(
Tx_,
Ty_,
Tround_);
66template <typename
T> inline
bool ne(
Tx_,
Ty_,
Tround_);
67template <typename
T> inline
bool lt(
Tx_,
Ty_,
Tround_);
68template <typename
T> inline
bool le(
Tx_,
Ty_,
Tround_);
74 template<
typenameT>
bool relApprox(
Tx_,
Ty_,
Teps_) {
returnapprox <T> (x_, y_, eps_ * y_);}
75 template<
typenameT>
bool absRelApprox(
Tx_,
Ty_,
Ttol_,
Trtol_) {
returnapprox <T> (x_, y_, tol_) || relApprox <T> (x_, y_, rtol_);}
79 template<
typenameT>
bool eq(
Tx_,
Ty_,
Tround_) {
returnrelApprox <T> (x_, y_, round_);}
80 template<
typenameT>
bool ge(
Tx_,
Ty_,
Tround_) {
return(x_ - y_) >= -(
::fabs(y_)) * round_;}
81 template<
typenameT>
bool gt(
Tx_,
Ty_,
Tround_) {
return(x_ - y_) > (
::fabs(y_)) * round_;}
82 template<
typenameT>
bool ne(
Tx_,
Ty_,
Tround_) {
return!
eq(x_, y_, round_);}
83 template<
typenameT>
bool lt(
Tx_,
Ty_,
Tround_) {
return!
ge(x_, y_, round_);}
84 template<
typenameT>
bool le(
Tx_,
Ty_,
Tround_) {
return!
gt(x_, y_, round_);}
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
#define F(x)
Make a parametrized function appear to have only one variable.
#define DBL_EPSILON
size of the next series term that indicates convergence in the log and polygamma functions
The NCBI C++/STL use hints.
const float FLT_THRESHOLD
bool le(T x_, T y_, T round_)
bool ge(T x_, T y_, T round_)
bool lt(T x_, T y_, T round_)
const double DBL_THRESHOLD
bool relApprox(T x_, T y_, T eps_)
bool approx(T x_, T y_, T eps_)
bool absRelApprox(T x_, T y_, T tol_, T rtol_)
bool eq(T x_, T y_, T round_)
bool ne(T x_, T y_, T round_)
bool gt(T x_, T y_, T round_)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4