|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Right-preconditioned BiCGSTAB for independent complex right-hand sides. More...
#include <linear_bicgstab.h>
Public Member Functions | |
| LinearBiCGSTAB (const double tolerance, const diag_comm_info &comm) | |
| LinearSolveResult | solve (const LinearOperator< T, Device > &op, const LinearOperator< T, Device > &preconditioner, int ld, int nband, int dim, T *x, const T *b, const T *initial_residual, const int max_iterations) |
| Solve A*x=b, using x as initial guess and M as inverse preconditioner. | |
Private Types | |
| enum | WorkspaceSlot { residual_slot = 0 , shadow_slot = 1 , direction_slot = 2 , image_slot = 3 , intermediate_slot = 4 , precond_direction_slot = 5 , precond_intermediate_slot = 6 , intermediate_image_slot = 7 , solution_slot = 8 } |
Private Member Functions | |
| bool | iterate (const LinearOperator< T, Device > &op, const LinearOperator< T, Device > &preconditioner, LinearSolveResult *result) |
| void | retire (const int band) |
| void | retire_converged (const bool alpha_step, const bool identity) |
| bool | breakdown (const T divisor, const int band, LinearSolveResult *result) const |
Private Attributes | |
| const double | tolerance_ |
| LinearWorkspace< T, Device > | work_ |
| int | ld_ = 0 |
| int | dim_ = 0 |
| int | active_ = 0 |
| std::vector< T > | beta_ |
| std::vector< T > | rho_ |
| std::vector< T > | rho_prev_ |
| std::vector< T > | alpha_ |
| std::vector< T > | omega_ |
| std::vector< T > | denominator_ |
| std::vector< T > | tt_ |
| std::vector< T > | norm_ |
| std::vector< double > | threshold_ |
| std::vector< int > | original_ |
| std::vector< int > | swaps_ |
| std::vector< int > | skip_ |
Right-preconditioned BiCGSTAB for independent complex right-hand sides.
|
private |
| hsolver::LinearBiCGSTAB< T, Device >::LinearBiCGSTAB | ( | const double | tolerance, |
| const diag_comm_info & | comm ) |
|
private |
|
private |
|
private |
|
private |
| LinearSolveResult hsolver::LinearBiCGSTAB< T, Device >::solve | ( | const LinearOperator< T, Device > & | op, |
| const LinearOperator< T, Device > & | preconditioner, | ||
| int | ld, | ||
| int | nband, | ||
| int | dim, | ||
| T * | x, | ||
| const T * | b, | ||
| const T * | initial_residual, | ||
| const int | max_iterations ) |
Solve A*x=b, using x as initial guess and M as inverse preconditioner.
| ld | Column stride, at least dim. Padding is neither read nor overwritten. |
| dim | Local valid row count; may be zero on an MPI participant. |
| initial_residual | Optional initial residual, reused on the first cycle only; otherwise nullptr. |
| max_iterations | Iteration budget for this call, shared by all restart cycles. |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |