|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include "source_base/parallel_blkcyc.h"Go to the source code of this file.
Namespaces | |
| namespace | LR |
Functions | |
| template<typename T> | |
| void | LR::scalapack_linear_solver (T *A, T *B, const Parallel_Blkcyclic &pA, const Parallel_Blkcyclic &pB) |
| Solve A Z = B with ScaLAPACK LU (p?gesv), the distributed counterpart of LR_Util::lapack_linear_solver. | |
| template<typename T> | |
| void | LR::scalapack_cholesky_linear_solver (T *A, T *B, const Parallel_Blkcyclic &pA, const Parallel_Blkcyclic &pB) |
| Solve A Z = B for a Hermitian positive-definite A with ScaLAPACK alone: Cholesky p?potrf A = U^H U, then p?potrs. A is Hermitized as (A + A^H)/2 first. Arguments as in scalapack_linear_solver; A is overwritten by U. Throws on every rank if A is not positive definite (p?potrf's INFO is global). | |