1 #ifndef QNANO_NEW_EIGEN_DIAGONALIZE_SPARSE_MATRIX_DEFINED_H 2 #define QNANO_NEW_EIGEN_DIAGONALIZE_SPARSE_MATRIX_DEFINED_H 4 #include "eigen/include_Eigen.h" 5 #include "tools/Sparse_Matrix_Generator.h" 6 #include "tools/Abstract_Solver.h" 13 Eigen::SelfAdjointEigenSolver<Eigen::MatrixXcd> solver;
16 void generate_Matrix();
19 virtual bool should_print()
const{
24 virtual double get_eigenvalue(
size_t i);
25 virtual void get_EV_local_part(
size_t i, std::complex<double> *ptr);
30 void print_eigenvalues(std::ostream &ofs=std::cout)
const;
31 void print_eigenvalues(
const std::string &filename)
const;
35 : generator(generator_) {
Definition: Abstract_Solver.h:8
Definition: Sparse_Matrix_Generator.h:22
Definition: Eigen_Diagonalize_Sparse_Matrix.h:8