ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
dense_text_body.h
Go to the documentation of this file.
1#ifndef DENSE_TEXT_BODY_H
2#define DENSE_TEXT_BODY_H
3
4#include <complex>
5#include <cstddef>
6#include <iosfwd>
7#include <vector>
8
9namespace ModuleIO
10{
11
21std::size_t dense_buffer_index(const int i, const int j, const int nlocal, const bool column_major);
22
45void write_dense_text_body(std::ofstream& ofs,
46 const std::vector<double>& mat,
47 const int nlocal,
48 const int precision,
49 const bool column_major);
50
62void write_dense_text_body(std::ofstream& ofs,
63 const std::vector<std::complex<double>>& mat,
64 const int nlocal,
65 const int precision,
66 const bool column_major);
67
68} // namespace ModuleIO
69
70#endif // DENSE_TEXT_BODY_H
Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in e...
Definition csr_reader.cpp:8
void 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) ...
Definition dense_text_body.cpp:62
std::size_t 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.
Definition dense_text_body.cpp:50