ergo
|
Test serial recursive expansion and computation of homo and lumo eigenvectors of a diagonal matrix with given eigenspectrum. More...
#include "purification_sp2.h"
#include "purification_sp2acc.h"
#include "matrix_typedefs.h"
#include "realtype.h"
#include "matrix_utilities.h"
#include "integral_matrix_wrappers.h"
#include "SizesAndBlocks.h"
#include "Matrix.h"
#include "Vector.h"
#include "MatrixSymmetric.h"
#include "MatrixTriangular.h"
#include "MatrixGeneral.h"
#include "VectorGeneral.h"
#include "output.h"
#include <iostream>
#include <fstream>
#include <string.h>
#include "random_matrices.h"
Macros | |
#define | SQRT_EPSILON_REAL template_blas_sqrt(mat::getMachineEpsilon<real>()) |
Typedefs | |
typedef ergo_real | real |
typedef symmMatrix | MatrixType |
typedef MatrixType::VectorType | VectorType |
Functions | |
int | test1 (int argc, char *argv[]) |
int | test2 () |
int | test3 () |
int | test4 () |
int | main (int argc, char *argv[]) |
Variables | |
real | TOL_ERR_SUBS_DEFAULT = 0 |
real | TOL_TRACE_ERROR_DEFAULT = SQRT_EPSILON_REAL |
real | SCALAR_TOL = SQRT_EPSILON_REAL |
Test serial recursive expansion and computation of homo and lumo eigenvectors of a diagonal matrix with given eigenspectrum.
#define SQRT_EPSILON_REAL template_blas_sqrt(mat::getMachineEpsilon<real>()) |
typedef symmMatrix MatrixType |
typedef MatrixType::VectorType VectorType |
int main | ( | int | argc, |
char * | argv[] | ||
) |
int test1 | ( | int | argc, |
char * | argv[] | ||
) |
References mat::MatrixSymmetric< Treal, Tmatrix >::assign_from_sparse(), cols, PurificationGeneral< MatrixType >::compute_eigenvectors_without_diagonalization_on_F(), PuriInfo::converged, mat::Interval< Treal >::empty(), mat::euclNorm, PurificationGeneral< MatrixType >::extract_computed_eigenpairs(), mat::VectorGeneral< Treal, Tvector >::fullvector(), PurificationGeneral< MatrixType >::info, PurificationGeneral< MatrixType >::initialize(), mat::VectorGeneral< Treal, Tvector >::is_empty(), PurificationGeneral< MatrixType >::PurificationStart(), rows, SCALAR_TOL, PurificationGeneral< MatrixType >::set_compute_eigenvectors_in_each_iteration(), PurificationGeneral< MatrixType >::set_eigenvectors_params(), template_blas_fabs(), TOL_ERR_SUBS_DEFAULT, TOL_TRACE_ERROR_DEFAULT, and PurificationGeneral< MatrixType >::X.
Referenced by main().
int test2 | ( | ) |
References mat::MatrixSymmetric< Treal, Tmatrix >::assign_from_sparse(), cols, PuriInfo::converged, mat::Interval< Treal >::empty(), mat::euclNorm, PurificationGeneral< MatrixType >::extract_computed_eigenpairs(), PurificationGeneral< MatrixType >::info, PurificationGeneral< MatrixType >::initialize(), PurificationGeneral< MatrixType >::PurificationStart(), rows, PurificationGeneral< MatrixType >::set_eigenvectors_params(), and TOL_ERR_SUBS_DEFAULT.
Referenced by main().
int test3 | ( | ) |
References mat::MatrixSymmetric< Treal, Tmatrix >::assign_from_sparse(), cols, PuriInfo::converged, mat::Interval< Treal >::empty(), mat::euclNorm, PurificationGeneral< MatrixType >::extract_computed_eigenpairs(), PurificationGeneral< MatrixType >::info, PurificationGeneral< MatrixType >::initialize(), PurificationGeneral< MatrixType >::PurificationStart(), rows, PurificationGeneral< MatrixType >::set_eigenvectors_params(), and TOL_ERR_SUBS_DEFAULT.
Referenced by main().
int test4 | ( | ) |
References mat::MatrixSymmetric< Treal, Tmatrix >::assign_from_sparse(), cols, PurificationGeneral< MatrixType >::compute_eigenvectors_without_diagonalization_on_F(), PuriInfo::converged, mat::Interval< Treal >::empty(), mat::euclNorm, PurificationGeneral< MatrixType >::info, PurificationGeneral< MatrixType >::initialize(), PurificationGeneral< MatrixType >::PurificationStart(), rows, PurificationGeneral< MatrixType >::set_compute_eigenvectors_in_each_iteration(), PurificationGeneral< MatrixType >::set_eigenvectors_params(), template_blas_fabs(), TOL_ERR_SUBS_DEFAULT, TOL_TRACE_ERROR_DEFAULT, and PurificationGeneral< MatrixType >::X.
Referenced by main().
real SCALAR_TOL = SQRT_EPSILON_REAL |
Referenced by test1().
real TOL_TRACE_ERROR_DEFAULT = SQRT_EPSILON_REAL |