|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Method selection and reusable numerical workspace, independent of physics. More...
#include <hsolver_linear.h>
Public Member Functions | |
| HSolverLinear (const LinearControls &linear_ctrl, const diag_comm_info &comm) | |
| double | tolerance () const |
| Return the effective tolerance after resolving the precision-dependent default. | |
| LinearSolveResult | solve (const LinearOperator< T, Device > &op, const LinearOperator< T, Device > &preconditioner, int ld, int nvec, int dim, T *x, const T *b, const T *initial_residual, bool force_check) |
| Reuse an optional CN residual and control independent GMRES verification. | |
| LinearSolveResult | solve (const LinearOperator< T, Device > &op, const LinearOperator< T, Device > &preconditioner, int ld, int nvec, int dim, T *x, const T *b, const T *initial_residual, bool force_check, int max_iter, bool reconstruct) |
| Reuse solver storage with an explicit per-call budget and reconstruction policy. | |
Private Attributes | |
| std::unique_ptr< LinearBiCGSTAB< T, Device > > | bicgstab_ |
| std::unique_ptr< LinearCGS< T, Device > > | cgs_ |
| std::unique_ptr< LinearGMRES< T, Device > > | gmres_ |
| double | tolerance_ = 0.0 |
| const int | max_iter_ |
| const bool | reconstruct_ |
Method selection and reusable numerical workspace, independent of physics.
| hsolver::HSolverLinear< T, Device >::HSolverLinear | ( | const LinearControls & | linear_ctrl, |
| const diag_comm_info & | comm ) |
| LinearSolveResult hsolver::HSolverLinear< T, Device >::solve | ( | const LinearOperator< T, Device > & | op, |
| const LinearOperator< T, Device > & | preconditioner, | ||
| int | ld, | ||
| int | nvec, | ||
| int | dim, | ||
| T * | x, | ||
| const T * | b, | ||
| const T * | initial_residual, | ||
| bool | force_check ) |
Reuse an optional CN residual and control independent GMRES verification.
| LinearSolveResult hsolver::HSolverLinear< T, Device >::solve | ( | const LinearOperator< T, Device > & | op, |
| const LinearOperator< T, Device > & | preconditioner, | ||
| int | ld, | ||
| int | nvec, | ||
| int | dim, | ||
| T * | x, | ||
| const T * | b, | ||
| const T * | initial_residual, | ||
| bool | force_check, | ||
| int | max_iter, | ||
| bool | reconstruct ) |
Reuse solver storage with an explicit per-call budget and reconstruction policy.
|
inline |
Return the effective tolerance after resolving the precision-dependent default.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |