ergo
|
#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 |
|
inlineexplicit |
Referenced by mat::Interval< ergo_real >::intersect().
|
inline |
|
inline |
|
inline |
Referenced by mat::Interval< ergo_real >::cover(), per::Perturbation< Treal, Tmatrix, Tvector >::dryRun(), mat::PuriInfo< Treal, Tvector, TdebugPolicy >::estimateStepsLeft(), mat::PuriStepInfo< Treal, Tvector, TdebugPolicy >::exchangeInfoWithNext(), mat::PuriInfo< Treal, Tvector, TdebugPolicy >::getOptimalThresh(), mat::PuriInfo< Treal, Tvector, TdebugPolicy >::improveCorrectOccupation(), mat::Interval< ergo_real >::increase(), mat::Interval< ergo_real >::intersect(), mat::Interval< ergo_real >::intersect_always_non_empty(), mat::Interval< ergo_real >::length(), mat::Interval< ergo_real >::midPoint(), mat::operator<<(), mat::Interval< ergo_real >::overlap(), mat::Purification< Treal, Tmatrix, TdebugPolicy >::Purification(), and mat::sqrtInt().
|
inline |
Increases interval with value in both directions.
Useful for error control.
Referenced by mat::PuriStepInfo< Treal, Tvector, TdebugPolicy >::exchangeInfoWithNext(), SCF_restricted::get_2e_part_and_energy(), get_dens_from_fock_sparse(), mat::Purification< Treal, Tmatrix, TdebugPolicy >::Purification(), and mat::Purification< Treal, Tmatrix, TdebugPolicy >::stepComputeInfo().
|
inlinestatic |
Referenced by mat::PuriStepInfo< Treal, Tvector, TdebugPolicy >::exchangeInfoWithNext(), get_dens_from_fock_sparse(), mat::PuriInfo< Treal, Tvector, TdebugPolicy >::improveCorrectOccupation(), mat::Interval< ergo_real >::intersect_always_non_empty(), mat::Interval< Treal >::invPuriStep(), mat::Interval< ergo_real >::overlap(), mat::Interval< Treal >::puriStep(), and mat::Purification< Treal, Tmatrix, TdebugPolicy >::stepComputeInfo().
|
inline |
|
inline |
void mat::Interval< Treal >::invPuriStep | ( | int | poly | ) |
References mat::Interval< Treal >::intersect(), and template_blas_sqrt().
Referenced by mat::PuriStepInfo< Treal, Tvector, TdebugPolicy >::exchangeInfoWithNext().
void mat::Interval< Treal >::invPuriStep | ( | int | poly, |
Treal | alpha | ||
) |
References mat::Interval< Treal >::intersect(), and template_blas_sqrt().
|
inline |
Returns the length of the interval.
0 if empty.
Referenced by per::Perturbation< Treal, Tmatrix, Tvector >::dryRun(), mat::PuriInfo< Treal, Tvector, TdebugPolicy >::estimateStepsLeft(), mat::MatrixTriangular< Treal, Tmatrix >::eucl(), mat::MatrixGeneral< Treal, Tmatrix >::eucl(), mat::MatrixSymmetric< Treal, Tmatrix >::euclDiffIfSmall(), mat::EuclTruncationSymm< Tmatrix, Treal >::euclIfSmall(), mat::EuclTruncationSymmWithZ< Tmatrix, TmatrixZ, Treal >::euclIfSmall(), mat::EuclTruncationGeneral< Tmatrix, Treal >::euclIfSmall(), mat::EuclTruncationCongrTransMeasure< Tmatrix, TmatrixB, Treal >::euclIfSmall(), mat::PuriStepInfo< Treal, Tvector, TdebugPolicy >::improveHomoLumo(), mat::PuriInfo< Treal, Tvector, TdebugPolicy >::ShouldComputeXmX2EuclNormAccurately(), and mat::PuriStepInfo< Treal, Tvector, TdebugPolicy >::subspaceError().
|
inline |
Referenced by SCF_restricted::disturb_fock_matrix(), per::Perturbation< Treal, Tmatrix, Tvector >::dryRun(), mat::PuriInfo< Treal, Tvector, TdebugPolicy >::estimateStepsLeft(), mat::MatrixTriangular< Treal, Tmatrix >::eucl(), mat::MatrixGeneral< Treal, Tmatrix >::eucl(), mat::EuclTruncationGeneral< Tmatrix, Treal >::euclIfSmall(), SCF_restricted::get_2e_part_and_energy(), get_dens_from_fock_sparse(), mat::PuriStepInfo< Treal, Tvector, TdebugPolicy >::improveHomoLumo(), mat::operator<<(), mat::Purification< Treal, Tmatrix, TdebugPolicy >::Purification(), mat::PuriInfo< Treal, Tvector, TdebugPolicy >::ShouldComputeXmX2EuclNormAccurately(), simple_purification(), and mat::sqrtInt().
|
inline |
Referenced by per::Perturbation< Treal, Tmatrix, Tvector >::dryRun(), mat::MatrixTriangular< Treal, Tmatrix >::eucl(), mat::MatrixGeneral< Treal, Tmatrix >::eucl(), mat::MatrixSymmetric< Treal, Tmatrix >::eucl_diff(), mat::MatrixSymmetric< Treal, Tmatrix >::euclDiffIfSmall(), mat::EuclTruncationSymm< Tmatrix, Treal >::euclIfSmall(), mat::EuclTruncationSymmWithZ< Tmatrix, TmatrixZ, Treal >::euclIfSmall(), mat::EuclTruncationGeneral< Tmatrix, Treal >::euclIfSmall(), mat::EuclTruncationCongrTransMeasure< Tmatrix, TmatrixB, Treal >::euclIfSmall(), and mat::PuriInfo< Treal, Tvector, TdebugPolicy >::getThreshIncreasingGap().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void mat::Interval< Treal >::puriStep | ( | int | poly | ) |
References mat::Interval< Treal >::intersect().
Referenced by mat::PuriInfo< Treal, Tvector, TdebugPolicy >::estimateStepsLeft(), mat::PuriStepInfo< Treal, Tvector, TdebugPolicy >::exchangeInfoWithNext(), mat::PuriInfo< Treal, Tvector, TdebugPolicy >::improveCorrectOccupation(), and mat::PuriInfo< Treal, Tvector, TdebugPolicy >::ShouldComputeXmX2EuclNormAccurately().
void mat::Interval< Treal >::puriStep | ( | int | poly, |
Treal | alpha | ||
) |
References mat::Interval< Treal >::intersect().
|
inline |
Referenced by SCF_restricted::disturb_fock_matrix(), per::Perturbation< Treal, Tmatrix, Tvector >::dryRun(), mat::PuriInfo< Treal, Tvector, TdebugPolicy >::estimateStepsLeft(), mat::EuclTruncationGeneral< Tmatrix, Treal >::euclIfSmall(), SCF_restricted::get_2e_part_and_energy(), get_dens_from_fock_sparse(), mat::PuriInfo< Treal, Tvector, TdebugPolicy >::getOptimalThresh(), mat::PuriInfo< Treal, Tvector, TdebugPolicy >::getThreshIncreasingGap(), mat::operator<<(), mat::Purification< Treal, Tmatrix, TdebugPolicy >::Purification(), mat::EuclTruncationBase< Tmatrix, Treal >::run(), mat::PuriInfo< Treal, Tvector, TdebugPolicy >::ShouldComputeXmX2EuclNormAccurately(), simple_purification(), mat::sqrtInt(), and mat::Purification< Treal, Tmatrix, TdebugPolicy >::stepComputeInfo().
|
protected |
Referenced by mat::Interval< ergo_real >::cover(), mat::Interval< ergo_real >::decrease(), mat::Interval< ergo_real >::empty(), mat::Interval< ergo_real >::increase(), mat::Interval< ergo_real >::intersect(), mat::Interval< ergo_real >::intersect_always_non_empty(), mat::Interval< ergo_real >::length(), mat::Interval< ergo_real >::low(), mat::Interval< ergo_real >::midPoint(), mat::Interval< ergo_real >::operator*(), mat::Interval< ergo_real >::operator+(), mat::Interval< ergo_real >::operator-(), and mat::Interval< ergo_real >::operator/().
|
protected |
Referenced by mat::Interval< ergo_real >::decrease(), mat::Interval< ergo_real >::empty(), mat::Interval< ergo_real >::increase(), mat::Interval< ergo_real >::intersect(), mat::Interval< ergo_real >::intersect_always_non_empty(), mat::Interval< ergo_real >::length(), mat::Interval< ergo_real >::midPoint(), mat::Interval< ergo_real >::operator*(), mat::Interval< ergo_real >::operator+(), mat::Interval< ergo_real >::operator-(), mat::Interval< ergo_real >::operator/(), and mat::Interval< ergo_real >::upp().