ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
hs_dense_io.h
Go to the documentation of this file.
1#ifndef HS_DENSE_IO_H
2#define HS_DENSE_IO_H
3
4#include <string>
5
7
8// mohan note: this file holds the dense square-matrix writer
9// (formerly save_mat in write_hs.h / write_hs.hpp).
10
11namespace ModuleIO
12{
13
27template <typename T>
28void save_mat(const int istep,
29 const T* mat,
30 const int dim,
31 const bool bit,
32 const int precision,
33 const bool tri,
34 const bool app,
35 const std::string& file_name,
36 const Parallel_Blkcyclic& pv,
37 const int drank,
38 const std::string& ks_solver,
39 const bool reduce = true);
40
41} // namespace ModuleIO
42
43#endif // HS_DENSE_IO_H
#define T
Definition exp.cpp:237
Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in e...
Definition csr_reader.cpp:8
void save_mat(const int istep, const T *mat, const int dim, const bool bit, const int precision, const bool tri, const bool app, const std::string &file_name, const Parallel_Blkcyclic &pv, const int drank, const std::string &ks_solver, const bool reduce=true)
save a square matrix, such as H(k) and S(k)
Definition hs_dense_io.cpp:69