source/test/recexp_sprandsym.cc File Reference

Test serial recursive expansion and computation of homo and lumo eigenvectors of a sparse matrix with a 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 <sstream>
#include <string.h>
#include "random_matrices.h"
#include "get_eigenvectors.h"

Defines

#define SQRT_EPSILON_REAL   template_blas_sqrt(mat::getMachineEpsilon<real>())
#define MAX_DOUBLE   std::numeric_limits<real>::max()
#define MIN_DOUBLE   std::numeric_limits<real>::min()

Typedefs

typedef ergo_real real
typedef symmMatrix MatrixType
typedef normalMatrix MatrixTypeGeneral
typedef MatrixType::VectorType VectorType

Functions

static bool abs_compare (real a, real b)
int main (int argc, char *argv[])

Variables

real TOL_ERR_SUBS_DEFAULT = SQRT_EPSILON_REAL
real TOL_TRACE_ERROR_DEFAULT = SQRT_EPSILON_REAL
real SCALAR_TOL = SQRT_EPSILON_REAL
real TOL_EIGENSOLVER_ACC_DEFAULT = 1e-12

Detailed Description

Test serial recursive expansion and computation of homo and lumo eigenvectors of a sparse matrix with a given eigenspectrum.

Matrix is generated using Givens rotations starting from a diagonal matrix with a required eigenvalues, so eigenvectors of a result matrix are explicitly known and saved into the matrix Q.

Author:
Anastasia Kruchinina responsible

Define Documentation

#define MAX_DOUBLE   std::numeric_limits<real>::max()
#define MIN_DOUBLE   std::numeric_limits<real>::min()
#define SQRT_EPSILON_REAL   template_blas_sqrt(mat::getMachineEpsilon<real>())

Typedef Documentation

typedef ergo_real real

Function Documentation

static bool abs_compare ( real  a,
real  b 
) [static]

References template_blas_fabs().

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

Variable Documentation

real SCALAR_TOL = SQRT_EPSILON_REAL
real TOL_ERR_SUBS_DEFAULT = SQRT_EPSILON_REAL
real TOL_TRACE_ERROR_DEFAULT = SQRT_EPSILON_REAL

Generated on 10 Jul 2018 for ergo by  doxygen 1.6.1