#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. | |
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. | |
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 |
mat::Interval< Treal >::Interval | ( | Treal | low = 1 , |
|
Treal | upp = -1 | |||
) | [inline, explicit] |
Referenced by mat::Interval< ergo_real >::intersect().
bool mat::Interval< Treal >::cover | ( | Treal const | value | ) | const [inline] |
void mat::Interval< Treal >::decrease | ( | Treal const | value | ) | [inline] |
bool mat::Interval< Treal >::empty | ( | ) | const [inline] |
Referenced by PurificationGeneral< MatrixType >::compute_X(), mat::Interval< ergo_real >::cover(), per::Perturbation< Treal, Tmatrix, Tvector >::dryRun(), mat::Interval< ergo_real >::increase(), mat::Interval< ergo_real >::intersect(), mat::Interval< ergo_real >::intersect_always_non_empty(), mat::Interval< ergo_real >::length(), main(), PurificationGeneral< MatrixType >::map_bounds_to_0_1(), mat::Interval< ergo_real >::midPoint(), mat::operator<<(), mat::Interval< ergo_real >::overlap(), Purification_sp2acc< MatrixType >::purify_bounds(), Purification_sp2< MatrixType >::purify_bounds(), and mat::sqrtInt().
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().
void mat::Interval< Treal >::intersect | ( | Interval< Treal > const & | other | ) | [inline] |
static Interval mat::Interval< Treal >::intersect | ( | Interval< Treal > const & | A, | |
Interval< Treal > const & | B | |||
) | [inline, static] |
Referenced by mat::Interval< ergo_real >::intersect_always_non_empty(), mat::Interval< Treal >::invPuriStep(), PurificationGeneral< MatrixType >::map_bounds_to_0_1(), mat::Interval< ergo_real >::overlap(), Purification_sp2acc< MatrixType >::purify_bounds(), Purification_sp2< MatrixType >::purify_bounds(), and mat::Interval< Treal >::puriStep().
void mat::Interval< Treal >::intersect_always_non_empty | ( | Interval< Treal > const & | other | ) | [inline] |
void mat::Interval< Treal >::invPuriStep | ( | int | poly, | |
Treal | alpha | |||
) | [inline] |
void mat::Interval< Treal >::invPuriStep | ( | int | poly | ) | [inline] |
Treal mat::Interval< Treal >::length | ( | ) | const [inline] |
Returns the length of the interval.
0 if empty.
Referenced by per::Perturbation< Treal, Tmatrix, Tvector >::dryRun(), mat::MatrixTriangular< Treal, Tmatrix >::eucl(), mat::MatrixGeneral< Treal, Tmatrix >::eucl(), mat::MatrixSymmetric< Treal, Tmatrix >::euclDiffIfSmall(), mat::EuclTruncationCongrTransMeasure< Tmatrix, TmatrixB, Treal >::euclIfSmall(), mat::EuclTruncationSymmWithZ< Tmatrix, TmatrixZ, Treal >::euclIfSmall(), and mat::EuclTruncationSymm< Tmatrix, Treal >::euclIfSmall().
Treal mat::Interval< Treal >::low | ( | ) | const [inline] |
Referenced by PurificationGeneral< MatrixType >::compute_eigenvectors_without_diagonalization_on_F(), PurificationGeneral< MatrixType >::compute_X(), GetDensFromFock::create_checkpoint(), SCF_restricted::disturb_fock_matrix(), per::Perturbation< Treal, Tmatrix, Tvector >::dryRun(), PurificationGeneral< MatrixType >::eigenvalue_bounds_estimation(), PurificationGeneral< MatrixType >::estimate_homo_lumo(), Purification_sp2acc< MatrixType >::estimate_number_of_iterations(), Purification_sp2< MatrixType >::estimate_number_of_iterations(), mat::MatrixTriangular< Treal, Tmatrix >::eucl(), mat::MatrixGeneral< Treal, Tmatrix >::eucl(), PurificationGeneral< MatrixType >::find_eig_gaps_every_iter(), PurificationGeneral< MatrixType >::find_shifts_every_iter(), SCF_restricted::get_2e_part_and_energy(), GetDensFromFock::get_dens_from_fock_sparse(), PurificationGeneral< MatrixType >::get_eigenvalue_estimates(), PurificationGeneral< MatrixType >::get_interval_with_lambda(), PurificationGeneral< MatrixType >::get_spectrum_bounds(), PurificationGeneral< MatrixType >::map_bounds_to_0_1(), mat::operator<<(), PurificationGeneral< MatrixType >::prepare_to_purification(), PurificationGeneral< MatrixType >::purification_process(), Purification_sp2acc< MatrixType >::purify_bounds(), Purification_sp2< MatrixType >::purify_bounds(), Purification_sp2acc< MatrixType >::set_poly(), and mat::sqrtInt().
Treal mat::Interval< Treal >::midPoint | ( | ) | const [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::EuclTruncationCongrTransMeasure< Tmatrix, TmatrixB, Treal >::euclIfSmall(), mat::EuclTruncationSymmWithZ< Tmatrix, TmatrixZ, Treal >::euclIfSmall(), mat::EuclTruncationSymm< Tmatrix, Treal >::euclIfSmall(), and mat::Interval< Treal >::puriStep().
Interval<Treal> mat::Interval< Treal >::operator* | ( | Treal const & | value | ) | const [inline] |
Interval<Treal> mat::Interval< Treal >::operator+ | ( | Treal const & | value | ) | const [inline] |
Interval<Treal> mat::Interval< Treal >::operator+ | ( | Interval< Treal > const & | other | ) | const [inline] |
Interval<Treal> mat::Interval< Treal >::operator- | ( | Treal const & | value | ) | const [inline] |
Interval<Treal> mat::Interval< Treal >::operator- | ( | Interval< Treal > const & | other | ) | const [inline] |
Interval<Treal> mat::Interval< Treal >::operator/ | ( | Treal const & | value | ) | const [inline] |
bool mat::Interval< Treal >::overlap | ( | Interval< Treal > const & | other | ) | const [inline] |
void mat::Interval< Treal >::puriStep | ( | int | poly, | |
Treal | alpha | |||
) | [inline] |
void mat::Interval< Treal >::puriStep | ( | int | poly | ) | [inline] |
Treal mat::Interval< Treal >::upp | ( | ) | const [inline] |
Referenced by PurificationGeneral< MatrixType >::check_standard_stopping_criterion(), PurificationGeneral< MatrixType >::compute_eigenvectors_without_diagonalization_on_F(), PurificationGeneral< MatrixType >::compute_X(), GetDensFromFock::create_checkpoint(), SCF_restricted::disturb_fock_matrix(), per::Perturbation< Treal, Tmatrix, Tvector >::dryRun(), PurificationGeneral< MatrixType >::eigenvalue_bounds_estimation(), PurificationGeneral< MatrixType >::estimate_homo_lumo(), Purification_sp2acc< MatrixType >::estimate_number_of_iterations(), Purification_sp2< MatrixType >::estimate_number_of_iterations(), PurificationGeneral< MatrixType >::find_eig_gaps_every_iter(), PurificationGeneral< MatrixType >::find_shifts_every_iter(), SCF_restricted::get_2e_part_and_energy(), GetDensFromFock::get_dens_from_fock_sparse(), PurificationGeneral< MatrixType >::get_eigenvalue_estimates(), PurificationGeneral< MatrixType >::get_interval_with_lambda(), PurificationGeneral< MatrixType >::get_iterations_for_lumo_and_homo(), PurificationGeneral< MatrixType >::get_spectrum_bounds(), PurificationGeneral< MatrixType >::map_bounds_to_0_1(), mat::operator<<(), PurificationGeneral< MatrixType >::prepare_to_purification(), PurificationGeneral< MatrixType >::purification_process(), Purification_sp2acc< MatrixType >::purify_bounds(), Purification_sp2< MatrixType >::purify_bounds(), mat::EuclTruncationBase< Tmatrix, Treal >::run(), Purification_sp2acc< MatrixType >::set_poly(), and mat::sqrtInt().
Treal mat::Interval< Treal >::lowerBound [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< Treal >::invPuriStep(), 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-(), mat::Interval< ergo_real >::operator/(), and mat::Interval< Treal >::puriStep().
Treal mat::Interval< Treal >::upperBound [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< Treal >::invPuriStep(), 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/(), mat::Interval< Treal >::puriStep(), and mat::Interval< ergo_real >::upp().