ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
diag_lcao.h
Go to the documentation of this file.
1#ifndef HSOLVER_DIAG_LCAO_H
2#define HSOLVER_DIAG_LCAO_H
3
4#include <string>
5
7
8namespace ModuleBase
9{
10template <typename T> struct MatrixBlock;
11}
12
13namespace psi
14{
15template <typename T, typename Device> class Psi;
16}
17
18namespace base_device
19{
20struct DEVICE_CPU;
21}
22
23namespace hsolver
24{
27{
28 const std::string& method; // Borrowed backend name.
29 int order;
30 int bands;
31 bool use_gpu;
32 const Parallel_Blkcyclic* pool; // Non-null for a temporary k-point pool.
33 // True uses the backend's persistent ELPA factorization state for the
34 // caller's S buffer. The caller resets that state when S is rebuilt.
35 // False starts a fresh factorization of a scratch S and keeps its state
36 // local to this solve, as needed by the Löwdin overlap cutoff.
38};
39
41template <typename T>
45 double* eigenvalues,
46 const LcaoDiagOptions& options);
47} // namespace hsolver
48
49#endif
Parallel block-cyclic matrix distribution.
Definition parallel_blkcyc.h:25
Definition psi.h:37
Definition clebsch_gordan_coeff.cpp:8
Definition device.cpp:21
Definition dense_eigensolver.cpp:23
void diag_lcao(ModuleBase::MatrixBlock< T > &h, ModuleBase::MatrixBlock< T > &s, psi::Psi< T > &psi, double *eigenvalues, const LcaoDiagOptions &options)
Definition diag_lcao.cpp:48
Definition diag_lcao.h:14
A non-owning description of a matrix stored in memory.
Definition matrix_block.h:23
Definition diag_lcao.h:27
int order
Definition diag_lcao.h:29
const std::string & method
Definition diag_lcao.h:28
int bands
Definition diag_lcao.h:30
bool reuse_overlap_factor
Definition diag_lcao.h:37
const Parallel_Blkcyclic * pool
Definition diag_lcao.h:32
bool use_gpu
Definition diag_lcao.h:31