ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
restart_exx_csr.cpp File Reference
#include "restart_exx_csr.h"
#include "source_base/global_function.h"
#include "source_cell/unitcell.h"
#include "source_base/module_out/csr_reader.h"
#include "source_io/module_hs/hs_sparse_io.h"
#include "source_lcao/module_ri/serialization_cereal.h"
#include <cereal/types/utility.hpp>
#include <cereal/types/complex.hpp>
#include <cereal/types/array.hpp>
#include <cereal/types/memory.hpp>
#include <cereal/types/valarray.hpp>
#include <RI/global/Tensor.h>
#include <map>
Include dependency graph for restart_exx_csr.cpp:

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

template<typename Tdata>
void ModuleIO::read_Hexxs_csr (const std::string &file_name, const UnitCell &ucell, const int nspin, const int nbasis, std::vector< std::map< int, std::map< TAC, RI::Tensor< Tdata > > > > &Hexxs)
 read Hexxs in CSR format
template<typename Tdata>
void ModuleIO::read_Hexxs_cereal (const std::string &file_name, std::vector< std::map< int, std::map< TAC, RI::Tensor< Tdata > > > > &Hexxs)
 read Hexxs in cereal format
template<typename Tdata>
std::map< Abfs::Vector3_Order< int >, std::map< size_t, std::map< size_t, Tdata > > > ModuleIO::calculate_RI_Tensor_sparse (const double &sparse_threshold, const std::map< int, std::map< TAC, RI::Tensor< Tdata > > > &Hexxs, const UnitCell &ucell)
template<typename Tdata>
void ModuleIO::write_Hexxs_csr (const std::string &file_name, const UnitCell &ucell, const std::vector< std::map< int, std::map< TAC, RI::Tensor< Tdata > > > > &Hexxs)
 write Hexxs in CSR format
template void ModuleIO::read_Hexxs_csr< double > (const std::string &, const UnitCell &, const int, const int, std::vector< std::map< int, std::map< TAC, RI::Tensor< double > > > > &)
template void ModuleIO::read_Hexxs_csr< std::complex< double > > (const std::string &, const UnitCell &, const int, const int, std::vector< std::map< int, std::map< TAC, RI::Tensor< std::complex< double > > > > > &)
template void ModuleIO::read_Hexxs_cereal< double > (const std::string &, std::vector< std::map< int, std::map< TAC, RI::Tensor< double > > > > &)
template void ModuleIO::read_Hexxs_cereal< std::complex< double > > (const std::string &, std::vector< std::map< int, std::map< TAC, RI::Tensor< std::complex< double > > > > > &)
template std::map< Abfs::Vector3_Order< int >, std::map< size_t, std::map< size_t, double > > > ModuleIO::calculate_RI_Tensor_sparse< double > (const double &, const std::map< int, std::map< TAC, RI::Tensor< double > > > &, const UnitCell &)
template std::map< Abfs::Vector3_Order< int >, std::map< size_t, std::map< size_t, std::complex< double > > > > ModuleIO::calculate_RI_Tensor_sparse< std::complex< double > > (const double &, const std::map< int, std::map< TAC, RI::Tensor< std::complex< double > > > > &, const UnitCell &)
template void ModuleIO::write_Hexxs_csr< double > (const std::string &, const UnitCell &, const std::vector< std::map< int, std::map< TAC, RI::Tensor< double > > > > &)
template void ModuleIO::write_Hexxs_csr< std::complex< double > > (const std::string &, const UnitCell &, const std::vector< std::map< int, std::map< TAC, RI::Tensor< std::complex< double > > > > > &)