1#ifndef DENSE_TEXT_BODY_H
2#define DENSE_TEXT_BODY_H
21std::size_t
dense_buffer_index(
const int i,
const int j,
const int nlocal,
const bool column_major);
46 const std::vector<double>& mat,
49 const bool column_major);
63 const std::vector<std::complex<double>>& mat,
66 const bool column_major);
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