Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TMathBase.h File Reference
#include "RtypesCore.h"
#include <cstdlib>
#include <cmath>
#include <algorithm>
Include dependency graph for TMathBase.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  CompareAsc< T >
 
struct  CompareDesc< T >
 

Namespaces

namespace  TMath
 TMath.
 

Functions

Double_t TMath::Abs (Double_t d)
 Returns the absolute value of parameter Double_t d.
 
Float_t TMath::Abs (Float_t d)
 Returns the absolute value of parameter Float_t d.
 
Int_t TMath::Abs (Int_t d)
 Returns the absolute value of parameter Int_t d.
 
Long64_t TMath::Abs (Long64_t d)
 Returns the absolute value of parameter Long64_t d.
 
Long_t TMath::Abs (Long_t d)
 Returns the absolute value of parameter Long_t d.
 
LongDouble_t TMath::Abs (LongDouble_t d)
 Returns the absolute value of parameter LongDouble_t d.
 
Short_t TMath::Abs (Short_t d)
 Returns the absolute value of parameter Short_t d.
 
template<typename Iterator , typename Element >
Iterator TMath::BinarySearch (Iterator first, Iterator last, Element value)
 Binary search in an array defined by its iterators.
 
template<typename T >
Long64_t TMath::BinarySearch (Long64_t n, const T **array, T value)
 Binary search in an array of n values to locate value.
 
template<typename T >
Long64_t TMath::BinarySearch (Long64_t n, const T *array, T value)
 Binary search in an array of n values to locate value.
 
Bool_t TMath::Even (Long_t a)
 Returns true if a is even.
 
Double_t TMath::Max (Double_t a, Double_t b)
 Returns the largest of a and b.
 
Float_t TMath::Max (Float_t a, Float_t b)
 Returns the largest of a and b.
 
Int_t TMath::Max (Int_t a, Int_t b)
 Returns the largest of a and b.
 
Long64_t TMath::Max (Long64_t a, Long64_t b)
 Returns the largest of a and b.
 
Long_t TMath::Max (Long_t a, Long_t b)
 Returns the largest of a and b.
 
Short_t TMath::Max (Short_t a, Short_t b)
 Returns the largest of a and b.
 
UInt_t TMath::Max (UInt_t a, UInt_t b)
 Returns the largest of a and b.
 
ULong64_t TMath::Max (ULong64_t a, ULong64_t b)
 Returns the largest of a and b.
 
ULong_t TMath::Max (ULong_t a, ULong_t b)
 Returns the largest of a and b.
 
UShort_t TMath::Max (UShort_t a, UShort_t b)
 Returns the largest of a and b.
 
Double_t TMath::Min (Double_t a, Double_t b)
 Returns the smallest of a and b.
 
Float_t TMath::Min (Float_t a, Float_t b)
 Returns the smallest of a and b.
 
Int_t TMath::Min (Int_t a, Int_t b)
 Returns the smallest of a and b.
 
Long64_t TMath::Min (Long64_t a, Long64_t b)
 Returns the smallest of a and b.
 
Long_t TMath::Min (Long_t a, Long_t b)
 Returns the smallest of a and b.
 
Short_t TMath::Min (Short_t a, Short_t b)
 Returns the smallest of a and b.
 
UInt_t TMath::Min (UInt_t a, UInt_t b)
 Returns the smallest of a and b.
 
ULong64_t TMath::Min (ULong64_t a, ULong64_t b)
 Returns the smallest of a and b.
 
ULong_t TMath::Min (ULong_t a, ULong_t b)
 Returns the smallest of a and b.
 
UShort_t TMath::Min (UShort_t a, UShort_t b)
 Returns the smallest of a and b.
 
Long_t TMath::NextPrime (Long_t x)
 
Bool_t TMath::Odd (Long_t a)
 Returns true if a is odd.
 
Double_t TMath::Range (Double_t lb, Double_t ub, Double_t x)
 Returns x if lb < x < up, lb if x < lb and ub if x > ub.
 
Int_t TMath::Range (Int_t lb, Int_t ub, Int_t x)
 Returns x if lb < x < up, lb if x < lb and ub if x > ub.
 
Long_t TMath::Range (Long_t lb, Long_t ub, Long_t x)
 Returns x if lb < x < up, lb if x < lb and ub if x > ub.
 
Short_t TMath::Range (Short_t lb, Short_t ub, Short_t x)
 Returns x if lb < x < up, lb if x < lb and ub if x > ub.
 
ULong_t TMath::Range (ULong_t lb, ULong_t ub, ULong_t x)
 Returns x if lb < x < up, lb if x < lb and ub if x > ub.
 
Double_t TMath::Sign (Double_t a, Double_t b)
 Returns a value with the magnitude of a and the sign of b.
 
Float_t TMath::Sign (Float_t a, Float_t b)
 Returns a value with the magnitude of a and the sign of b.
 
LongDouble_t TMath::Sign (LongDouble_t a, LongDouble_t b)
 Returns a value with the magnitude of a and the sign of b.
 
template<typename T1 , typename T2 >
T1 TMath::Sign (T1 a, T2 b)
 Returns a value with the magnitude of a and the sign of b.
 
Bool_t TMath::SignBit (Double_t a)
 Returns whether the sign of Double_t a is negative.
 
Bool_t TMath::SignBit (Float_t a)
 Returns whether the sign of Float_t a is negative.
 
template<typename Integer >
Bool_t TMath::SignBit (Integer a)
 Returns whether the sign of Integer a is negative.
 
Bool_t TMath::SignBit (LongDouble_t a)
 Returns whether the sign of LongDouble_t a is negative.
 
template<typename Element , typename Index >
void TMath::Sort (Index n, const Element *a, Index *index, Bool_t down=kTRUE)
 Sort the n elements of the array a of generic templated type Element.
 
template<typename Iterator , typename IndexIterator >
void TMath::SortItr (Iterator first, Iterator last, IndexIterator index, Bool_t down=kTRUE)
 Sort the n1 elements of the Short_t array defined by its iterators.