ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
output_hcontainer.h
Go to the documentation of this file.
1#ifndef OUTPUT_HCONTAINER_H
2#define OUTPUT_HCONTAINER_H
3
5
6namespace hamilt
7{
8
12template <typename T>
14{
15 public:
16 Output_HContainer(hamilt::HContainer<T>* hcontainer, std::ostream& ofs, double sparse_threshold = -1, int precision = -1);
17 // write the matrices of all R vectors to the output stream
18 void write(bool write_empty = false);
19
24 void write(int rx_in, int ry_in, int rz_in);
25
30 void write_single_R(int rx, int ry, int rz);
31
32 private:
34 std::ostream& _ofs;
37};
38
39} // namespace hamilt
40
41#endif // OUTPUT_HCONTAINER_H
Definition hcontainer.h:144
A class to output the HContainer.
Definition output_hcontainer.h:14
void write(bool write_empty=false)
Definition output_hcontainer.cpp:32
void write_single_R(int rx, int ry, int rz)
Definition output_hcontainer.cpp:96
double _sparse_threshold
Definition output_hcontainer.h:35
hamilt::HContainer< T > * _hcontainer
Definition output_hcontainer.h:33
int _precision
Definition output_hcontainer.h:36
std::ostream & _ofs
Definition output_hcontainer.h:34
Definition hamilt.h:12