BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
TMath::Limits< T > Struct Template Reference

Description

template<typename T>
struct TMath::Limits< T >

Definition at line 308 of file TMath.h.

Static Public Member Functions

static T Epsilon ()
 
static T Max ()
 
static T Min ()
 

Member Function Documentation

◆ Epsilon()

template<typename T >
T TMath::Limits< T >::Epsilon
inlinestatic

Definition at line 628 of file TMath.h.

628  {
629  // returns minimum double representation
630  return std::numeric_limits<T>::epsilon();
631 }

◆ Max()

template<typename T >
T TMath::Limits< T >::Max
inlinestatic

Definition at line 622 of file TMath.h.

622  {
623  // returns minimum double representation
624  return (std::numeric_limits<T>::max)(); //N.B. use this signature to avoid class with macro max() on Windows
625 }

◆ Min()

template<typename T >
T TMath::Limits< T >::Min
inlinestatic

Definition at line 616 of file TMath.h.

616  {
617  // returns maximum representation for type T
618  return (std::numeric_limits<T>::min)(); //N.B. use this signature to avoid class with macro min() on Windows
619 }

Referenced by TMath::AreEqualRel().


The documentation for this struct was generated from the following file: