|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include <complex>#include <cstddef>#include <iosfwd>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | ModuleIO |
| Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in each anonymous namespace) so the header layout, R records and file-append rules cannot diverge between hs_sparse_io.cpp, dhs_sparse_writer.cpp, pos_op_csr.cpp, hsr_writer.cpp and write_dmr.cpp. | |
Functions | |
| std::size_t | ModuleIO::dense_buffer_index (const int i, const int j, const int nlocal, const bool column_major) |
| Flat index of matrix element (i, j) in a gathered buffer. | |
| void | ModuleIO::write_dense_text_body (std::ofstream &ofs, const std::vector< double > &mat, const int nlocal, const int precision, const bool column_major) |
| Write a dense square matrix body in the flat NAO text layout shared by the DM(k), H(k)/S(k) and T(k) writers. | |
| void | ModuleIO::write_dense_text_body (std::ofstream &ofs, const std::vector< std::complex< double > > &mat, const int nlocal, const int precision, const bool column_major) |
| Complex overload of write_dense_text_body. | |