Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

Basic numeric functions


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)

Function Documentation

template<class T>
T CTBmin T v1,
T v2
[inline]
 

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=().

template<class T>
T CTBmax T v1,
T v2
[inline]
 

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().

template<class T>
T CTBabs T x [inline]
 

Returns the absolute value of x .

Definition at line 53 of file CTBnum.icc.

int CTBabs int x [inline]
 

Returns the absolute value of x .

Definition at line 64 of file CTBnum.icc.

long CTBabs long x [inline]
 

Returns the absolute value of x .

Definition at line 75 of file CTBnum.icc.

float CTBabs float x [inline]
 

Returns the absolute value of x .

Definition at line 86 of file CTBnum.icc.

double CTBabs double x [inline]
 

Returns the absolute value of x .

Definition at line 97 of file CTBnum.icc.

Referenced by CTBabsm(), CTBpow(), CTBsign(), CTBtimeParsed::ToStream(), and sinhcosh_red().

template<class T>
T CTBabsm T x [inline]
 

Returns the absolute value of x (using max(abs(re),abs(im)) for complex).

Definition at line 109 of file CTBnum.icc.

template<class T>
T CTBabs2 T x [inline]
 

Returns square of absolute value of x .

Definition at line 121 of file CTBnum.icc.

Referenced by CTB3vec::Length(), and CTB2vec::Length().

template<class T1, class T2>
T1 CTBsign T1 x1,
T2 x2
[inline]
 

Returns x1 with the sign of x2 .

Definition at line 133 of file CTBnum.icc.

Referenced by CTBacos2(), and sinhcosh_red().

template<class T>
bool CTBbetween T x,
T a,
T b
[inline]
 

Returns true if x is in the closed interval [a,b] .

Definition at line 145 of file CTBnum.icc.

template<class T>
bool CTBinside T x,
T a,
T b
[inline]
 

Returns true if x is in the open interval (a,b) .

Definition at line 157 of file CTBnum.icc.

template<class T>
T CTBarg T x [inline]
 

Returns `argument' of x, simply returns 0 for non-complex types.

Definition at line 169 of file CTBnum.icc.

template<class T>
T CTBreal T x [inline]
 

Returns `real' part, simply returns x for non-complex types.

Definition at line 181 of file CTBnum.icc.

template<class T>
T CTBimag T x [inline]
 

Returns `imaginary' part, simply returns 0 non-complex types.

Definition at line 193 of file CTBnum.icc.


Generated at Fri Oct 24 18:14:16 2003 for CTBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001