ROOT
6.06/09
Reference Guide
|
These functions apply for any type T, such as a scalar, a vector or a matrix. More...
Functions | |
template<class T > | |
const T | ROOT::Math::Square (const T &x) |
square Template function to compute \(x\cdot x \), for any type T returning a type T More... | |
template<class T > | |
const T | ROOT::Math::Maximum (const T &lhs, const T &rhs) |
maximum. More... | |
template<class T > | |
const T | ROOT::Math::Minimum (const T &lhs, const T &rhs) |
minimum. More... | |
template<class T > | |
int | ROOT::Math::Round (const T &x) |
round. More... | |
template<class T > | |
int | ROOT::Math::Sign (const T &x) |
sign. More... | |
These functions apply for any type T, such as a scalar, a vector or a matrix.
|
inline |
maximum.
Template to find max(a,b) where a,b are of type T
Definition at line 87 of file Functions.h.
|
inline |
minimum.
Template to find min(a,b) where a,b are of type T
Definition at line 101 of file Functions.h.
|
inline |
round.
Template to compute nearest integer value for any type T
Definition at line 114 of file Functions.h.
|
inline |
|
inline |
square Template function to compute \(x\cdot x \), for any type T returning a type T
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().