QNANO
Sparse_Matrix_Generator.h
1 #ifndef QNANO_NEW_SPARSE_MATRIX_GENERATOR
2 #define QNANO_NEW_SPARSE_MATRIX_GENERATOR
3 
4 #include "tools/Reader.h"
5 #include <complex>
6 #include "tools/Organize_Blocks.h"
7 
19 typedef std::vector<std::pair<size_t, std::complex<double> > > col_val;
21 
23 public:
25 // virtual size_t get_nr_blocks() const = 0;
26  //Block size
27 // virtual size_t get_block_size() const = 0;
28 
30  virtual void get_Matrix_row_block( std::vector< col_val > & col_val_vec, const int atom_index) = 0;
31 
33  void dump_sparse_Matrix(const std::string &file_IA, const std::string &file_JA, const std::string &file_values);
34 
35 };
36 
38 
39 };
40 #endif
Definition: Organize_Blocks.h:13
Definition: Sparse_Matrix_Generator.h:22
void dump_sparse_Matrix(const std::string &file_IA, const std::string &file_JA, const std::string &file_values)
Support for dumping the sparse Matrix.
Definition: Sparse_Matrix_Generator.cc:3
Definition: Sparse_Matrix_Generator.h:37
virtual void get_Matrix_row_block(std::vector< col_val > &col_val_vec, const int atom_index)=0
Number of blocks.
Definition: Organize_Blocks.h:86