Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Generic Template Functions

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

Functions

template<class T >
const T ROOT::Math::Maximum (const T &lhs, const T &rhs)
 maximum.
 
template<class T >
const T ROOT::Math::Minimum (const T &lhs, const T &rhs)
 minimum.
 
template<class T >
int ROOT::Math::Round (const T &x)
 round.
 
template<class T >
int ROOT::Math::Sign (const T &x)
 sign.
 
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
 

Function Documentation

◆ Maximum()

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 86 of file Functions.h.

◆ Minimum()

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 100 of file Functions.h.

◆ Round()

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 113 of file Functions.h.

◆ Sign()

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 128 of file Functions.h.

◆ Square()

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 74 of file Functions.h.