ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
hs_sparse_io.h File Reference
#include "source_basis/module_ao/parallel_orbitals.h"
#include "source_lcao/module_ri/abfs_vector3_order.h"
#include <cstddef>
#include <map>
#include <set>
#include <string>
Include dependency graph for hs_sparse_io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ModuleIO::SparseWriteOptions

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.

Typedefs

using ModuleIO::RCoordinate = Abfs::Vector3_Order<int>
template<typename T>
using ModuleIO::SparseRBlock = std::map<size_t, std::map<size_t, T>>
template<typename T>
using ModuleIO::SparseRMatrix = std::map<RCoordinate, SparseRBlock<T>>

Functions

template<typename Tdata>
void ModuleIO::save_sparse (const SparseRMatrix< Tdata > &smat, const std::set< RCoordinate > &all_R_coor, const Parallel_Orbitals &pv, const SparseWriteOptions &options)