|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include <ATen/core/tensor.h>#include "source_psi/psi.h"#include "source_base/tool_title.h"#include "source_base/global_variable.h"#include "source_base/module_external/blas_connector.h"#include "source_base/module_external/scalapack_connector.h"#include "source_base/parallel_blkcyc.h"#include "source_basis/module_ao/parallel_orbitals.h"#include <RI/global/Tensor.h>#include <array>#include <map>Go to the source code of this file.
Namespaces | |
| namespace | BSE_Util |
Typedefs | |
| using | BSE_Util::TA = int |
| ================ RI ================== | |
| using | BSE_Util::TC = std::array<int, 3> |
| using | BSE_Util::TAC = std::pair<int, TC> |
| template<typename T> | |
| using | BSE_Util::TLRI = std::map<TA, std::map<TAC, RI::Tensor<T>>> |
| using | BSE_Util::DAT = container::DataType |
| ================ Container =============== | |
| using | BSE_Util::DEV = container::DeviceType |
| template<typename T> | |
| using | BSE_Util::DAT_ENUM = container::DataTypeToEnum<T> |
| Struct to get DataType enum for different tensor data types, not used currently. | |
Functions | |
| void | BSE_Util::print_mem_estimate (const std::string &name, const size_t &local_size, const size_t &type_size) |
| ================ info ================== | |
| template<typename T> | |
| bool | BSE_Util::move_R_tensor (TLRI< T > &tensor_map, const TA ia, const TA ja, const TC &R_original, const TC &R_new) |
| template<typename T> | |
| container::Tensor | BSE_Util::cal_dm_trans_onebase_pblas (const psi::Psi< T > &c, const Parallel_Blkcyclic &pc, const int &ik, const int &naos, const int &imo1, const int &imo2, const Parallel_Orbitals &pmat, const T &factor=(T) 1.0) |
| =============== Algorithm =================== | |
| template<typename T> | |
| container::Tensor | BSE_Util::cal_dm_trans_onebase_blas (const psi::Psi< T > &c, const int &ik, const int &naos, const int &imo1, const int &imo2, const T &factor=(T) 1.0) |
| calculate the transition density matrix in AO basis | |