ergo
mat::Interval< Treal > Class Template Reference

#include <Interval.h>

Public Member Functions

 Interval (Treal low=1, Treal upp=-1)
 
bool empty () const
 
void intersect (Interval const &other)
 
void intersect_always_non_empty (Interval const &other)
 
Treal length () const
 Returns the length of the interval. More...
 
Treal midPoint () const
 
bool cover (Treal const value) const
 
bool overlap (Interval const &other) const
 
void increase (Treal const value)
 Increases interval with value in both directions. More...
 
void decrease (Treal const value)
 
Treal low () const
 
Treal upp () const
 
Interval< Treal > operator* (Treal const &value) const
 
Interval< Treal > operator- (Interval< Treal > const &other) const
 
Interval< Treal > operator+ (Interval< Treal > const &other) const
 
Interval< Treal > operator/ (Treal const &value) const
 
Interval< Treal > operator- (Treal const &value) const
 
Interval< Treal > operator+ (Treal const &value) const
 
void puriStep (int poly)
 
void invPuriStep (int poly)
 
void puriStep (int poly, Treal alpha)
 
void invPuriStep (int poly, Treal alpha)
 

Static Public Member Functions

static Interval intersect (Interval const &A, Interval const &B)
 

Protected Attributes

Treal lowerBound
 
Treal upperBound
 

Constructor & Destructor Documentation

◆ Interval()

template<typename Treal >
mat::Interval< Treal >::Interval ( Treal  low = 1,
Treal  upp = -1 
)
inlineexplicit

Member Function Documentation

◆ cover()

template<typename Treal >
bool mat::Interval< Treal >::cover ( Treal const  value) const
inline

◆ decrease()

template<typename Treal >
void mat::Interval< Treal >::decrease ( Treal const  value)
inline

◆ empty()

◆ increase()

template<typename Treal >
void mat::Interval< Treal >::increase ( Treal const  value)
inline

Increases interval with value in both directions.

Useful for error control.

Referenced by SCF_restricted::get_2e_part_and_energy(), and GetDensFromFock::get_dens_from_fock_sparse().

◆ intersect() [1/2]

template<typename Treal >
static Interval mat::Interval< Treal >::intersect ( Interval< Treal > const &  A,
Interval< Treal > const &  B 
)
inlinestatic

◆ intersect() [2/2]

template<typename Treal >
void mat::Interval< Treal >::intersect ( Interval< Treal > const &  other)
inline

◆ intersect_always_non_empty()

template<typename Treal >
void mat::Interval< Treal >::intersect_always_non_empty ( Interval< Treal > const &  other)
inline

◆ invPuriStep() [1/2]

template<typename Treal >
void mat::Interval< Treal >::invPuriStep ( int  poly)

◆ invPuriStep() [2/2]

template<typename Treal >
void mat::Interval< Treal >::invPuriStep ( int  poly,
Treal  alpha 
)

◆ length()

◆ low()

◆ midPoint()

◆ operator*()

template<typename Treal >
Interval<Treal> mat::Interval< Treal >::operator* ( Treal const &  value) const
inline

◆ operator+() [1/2]

template<typename Treal >
Interval<Treal> mat::Interval< Treal >::operator+ ( Interval< Treal > const &  other) const
inline

◆ operator+() [2/2]

template<typename Treal >
Interval<Treal> mat::Interval< Treal >::operator+ ( Treal const &  value) const
inline

◆ operator-() [1/2]

template<typename Treal >
Interval<Treal> mat::Interval< Treal >::operator- ( Interval< Treal > const &  other) const
inline

◆ operator-() [2/2]

template<typename Treal >
Interval<Treal> mat::Interval< Treal >::operator- ( Treal const &  value) const
inline

◆ operator/()

template<typename Treal >
Interval<Treal> mat::Interval< Treal >::operator/ ( Treal const &  value) const
inline

◆ overlap()

template<typename Treal >
bool mat::Interval< Treal >::overlap ( Interval< Treal > const &  other) const
inline

◆ puriStep() [1/2]

template<typename Treal >
void mat::Interval< Treal >::puriStep ( int  poly)

◆ puriStep() [2/2]

template<typename Treal >
void mat::Interval< Treal >::puriStep ( int  poly,
Treal  alpha 
)

◆ upp()

Member Data Documentation

◆ lowerBound

◆ upperBound


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