QNANO
Coulomb_Onsite_Storage.h
1 #ifndef QNANO_DIR_COULOMB_ONSITE_STORAGE_DEFINED_H
2 #define QNANO_DIR_COULOMB_ONSITE_STORAGE_DEFINED_H
3 
4 #include "orbitals/Select_Orbitals.h"
5 #include "tools/Tensor4.h"
6 #include "tools/Reader.h"
7 
10 public:
11  Select_Orbitals orbs;
12 
13  void read(const std::string &orbfile, const std::string &onsitefile);
14 
15 
16  //Constructors and copy
17  void copy(const Coulomb_Onsite_Storage &other){
18  Tensor4::copy(other);
19  orbs=other.orbs;
20  }
21  Coulomb_Onsite_Storage &operator=(const Coulomb_Onsite_Storage &other){
22  copy(other);
23  return *this;
24  }
26  copy(other);
27  }
28 
29  Coulomb_Onsite_Storage(const std::string &orbfile,const std::string &onsitefile) {
30  read(orbfile, onsitefile);
31  }
33  }
34 };
35 
36 
37 
38 
39 #endif
Definition: Select_Orbitals.h:11
Class to store a rank-4 (complex) tensor:
Definition: Tensor4.h:9
Class to store precomputed onsite coulomb matrix elements.
Definition: Coulomb_Onsite_Storage.h:9