Generic Template Functions
[SMatrix]


Functions

template<class T>
const T ROOT::Math::Square (const T &x)
template<class T>
const T ROOT::Math::Maximum (const T &lhs, const T &rhs)
template<class T>
const T ROOT::Math::Minimum (const T &lhs, const T &rhs)
template<class T>
int ROOT::Math::Round (const T &x)
template<class T>
int ROOT::Math::Sign (const T &x)

Detailed Description

These functions apply for any type T, such as a scalar, a vector or a matrix.

Function Documentation

template<class T>
const T ROOT::Math::Maximum ( const T lhs,
const T rhs 
) [inline]

maximum. Template to find max(a,b) where a,b are of type T

Author:
T. Glebe

Definition at line 87 of file Functions.h.

Referenced by G__G__GL_114_0_20().

template<class T>
const T ROOT::Math::Minimum ( const T lhs,
const T rhs 
) [inline]

minimum. Template to find min(a,b) where a,b are of type T

Author:
T. Glebe

Definition at line 101 of file Functions.h.

Referenced by G__G__GL_114_0_19().

template<class T>
int ROOT::Math::Round ( const T x  )  [inline]

round. Template to compute nearest integer value for any type T

Author:
T. Glebe

Definition at line 114 of file Functions.h.

template<class T>
int ROOT::Math::Sign ( const T x  )  [inline]

sign. Template to compute the sign of a number

Author:
T. Glebe

Definition at line 129 of file Functions.h.

template<class T>
const T ROOT::Math::Square ( const T x  )  [inline]

square Template function to compute $x\cdot x $, for any type T returning a type T

Author:
T. Glebe

Definition at line 75 of file Functions.h.

Referenced by ROOT::Math::meta_mag< I >::f(), ROOT::Math::meta_mag< 0 >::f(), ROOT::Math::Lmag2(), and test8().


Generated on Tue Jul 5 16:09:39 2011 for ROOT_528-00b_version by  doxygen 1.5.1