Functions | |
template<class T> T | CTBmin (T v1, T v2) |
template<class T> T | CTBmax (T v1, T v2) |
template<class T> T | CTBabs (T x) |
int | CTBabs (int x) |
long | CTBabs (long x) |
float | CTBabs (float x) |
double | CTBabs (double x) |
template<class T> T | CTBabsm (T x) |
template<class T> T | CTBabs2 (T x) |
template<class T1, class T2> T1 | CTBsign (T1 x1, T2 x2) |
template<class T> bool | CTBbetween (T x, T a, T b) |
template<class T> bool | CTBinside (T x, T a, T b) |
template<class T> T | CTBarg (T) |
template<class T> T | CTBreal (T x) |
template<class T> T | CTBimag (T) |
|
Returns the smaller of the two values v1 and v2 .
Definition at line 29 of file CTBnum.icc. Referenced by CTBcstringBase::Append(), CTBacos2(), CTBadd(), CTBdot(), CTBmatrix::CTBmatrix(), CTBstring::CTBstring(), CTBsub(), CTBstring::Compare(), CTBstring::CompareCaseBlind(), CTBcstringBase::Copy(), CTBsharedBuffer::CopyData(), CTBmatrixDsc::Diagonal(), CTBmatrixCDsc::Diagonal(), CTBmatrix::Diagonal(), CTBmatrix::Resize(), CTBbtreeNode::SubTreeHeight(), CTBvectorDsc::operator=(), and CTBmatrixDsc::operator=().
|
|
Returns the smaller of the two values v1 and v2 .
Definition at line 41 of file CTBnum.icc. Referenced by CTBstring::AppendData(), CTBcomplex::CTBabsm(), CTBacos2(), CTBstring::CTBstring(), CTBstring::EnsureUnsharedCapacity(), CTBstring::FindCharacter(), CTBxmlIStream::GetTagFromLexer(), CTBvector::IncreaseCapacity(), CTBmatrix::IncreaseCapacity(), CTBbtreeNode::SubTreeCheck(), and CTBbtreeNode::SubTreeHeight().
|
|
Returns the absolute value of x .
Definition at line 53 of file CTBnum.icc. |
|
Returns the absolute value of x .
Definition at line 64 of file CTBnum.icc. |
|
Returns the absolute value of x .
Definition at line 75 of file CTBnum.icc. |
|
Returns the absolute value of x .
Definition at line 86 of file CTBnum.icc. |
|
Returns the absolute value of x .
Definition at line 97 of file CTBnum.icc. Referenced by CTBabsm(), CTBpow(), CTBsign(), CTBtimeParsed::ToStream(), and sinhcosh_red().
|
|
Returns the absolute value of x (using max(abs(re),abs(im)) for complex).
Definition at line 109 of file CTBnum.icc. |
|
Returns square of absolute value of x .
Definition at line 121 of file CTBnum.icc. Referenced by CTB3vec::Length(), and CTB2vec::Length().
|
|
Returns x1 with the sign of x2 .
Definition at line 133 of file CTBnum.icc. Referenced by CTBacos2(), and sinhcosh_red().
|
|
Returns
Definition at line 145 of file CTBnum.icc. |
|
Returns
Definition at line 157 of file CTBnum.icc. |
|
Returns `argument' of x, simply returns 0 for non-complex types.
Definition at line 169 of file CTBnum.icc. |
|
Returns `real' part, simply returns x for non-complex types.
Definition at line 181 of file CTBnum.icc. |
|
Returns `imaginary' part, simply returns 0 non-complex types.
Definition at line 193 of file CTBnum.icc. |