ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ao_to_mo.h
Go to the documentation of this file.
1#ifndef ABACUS_SOURCE_LCAO_MODULE_LR_AO_TO_MO_TRANSFORMER_AO_TO_MO_H
2#define ABACUS_SOURCE_LCAO_MODULE_LR_AO_TO_MO_TRANSFORMER_AO_TO_MO_H
3
4#include <ATen/core/tensor.h>
5#include "source_psi/psi.h"
7#include <vector>
8#include <cassert>
9#ifdef __MPI
11#endif
12namespace LR
13{
14 // type selects occupied/virtual MO blocks; factor scales the transformed matrix.
15 // add_on selects accumulation into mat_mo instead of overwriting it.
16 template<typename T>
18 const std::vector<container::Tensor>& mat_ao,
19 const psi::Psi<T>& coeff,
20 const int& nocc,
21 const int& nvirt,
22 T* const mat_mo,
23 const LR_Util::MO_TYPE type,
24 const T factor);
25 template<typename T>
27 const std::vector<container::Tensor>& mat_ao,
28 const psi::Psi<T>& coeff,
29 const int& nocc,
30 const int& nvirt,
31 T* const mat_mo,
32 const bool add_on,
33 const LR_Util::MO_TYPE type,
34 const T factor);
35#ifdef __MPI
36 template<typename T>
38 const std::vector<container::Tensor>& mat_ao,
39 const Parallel_Blkcyclic& pmat_ao,
40 const psi::Psi<T>& coeff,
41 const Parallel_Blkcyclic& pcoeff,
42 const int& naos,
43 const int& nocc,
44 const int& nvirt,
45 const Parallel_Blkcyclic& pmat_mo,
46 T* const mat_mo,
47 const bool add_on,
48 const LR_Util::MO_TYPE type,
49 const T factor);
50#endif
51}
52
53#endif // ABACUS_SOURCE_LCAO_MODULE_LR_AO_TO_MO_TRANSFORMER_AO_TO_MO_H
Parallel block-cyclic matrix distribution.
Definition parallel_blkcyc.h:25
Definition psi.h:37
#define T
Definition exp.cpp:237
MO_TYPE
Definition mo_type.h:9
Definition esolver_lr_lcao_tddft.h:28
void ao_to_mo_pblas(const std::vector< container::Tensor > &mat_ao, const Parallel_Blkcyclic &pmat_ao, const psi::Psi< T > &coeff, const Parallel_Blkcyclic &pcoeff, const int &naos, const int &nocc, const int &nvirt, const Parallel_Blkcyclic &pmat_mo, T *const mat_mo, const bool add_on, const LR_Util::MO_TYPE type, const T factor)
void ao_to_mo_forloop_serial(const std::vector< container::Tensor > &mat_ao, const psi::Psi< T > &coeff, const int &nocc, const int &nvirt, T *const mat_mo, const LR_Util::MO_TYPE type, const T factor)
void ao_to_mo_blas(const std::vector< container::Tensor > &mat_ao, const psi::Psi< T > &coeff, const int &nocc, const int &nvirt, T *const mat_mo, const bool add_on, const LR_Util::MO_TYPE type, const T factor)