#include <ginkgo/core/solver/batch_solver_base.hpp>
|
|
| BatchSolver (std::shared_ptr< const BatchLinOp > system_matrix, std::shared_ptr< const BatchLinOp > gen_preconditioner, const double res_tol, const int max_iterations, const ::gko::batch::stop::tolerance_type tol_type) |
| |
|
void | set_system_matrix_base (std::shared_ptr< const BatchLinOp > system_matrix) |
| |
|
void | set_preconditioner_base (std::shared_ptr< const BatchLinOp > precond) |
| |
|
|
std::shared_ptr< const BatchLinOp > | system_matrix_ {} |
| |
|
std::shared_ptr< const BatchLinOp > | preconditioner_ {} |
| |
|
double | residual_tol_ {} |
| |
|
int | max_iterations_ {} |
| |
|
::gko::batch::stop::tolerance_type | tol_type_ {} |
| |
|
array< unsigned char > | workspace_ {} |
| |
The BatchSolver is a base class for all batched solvers and provides the common getters and setter for these batched solver classes.
◆ get_max_iterations()
| int gko::batch::solver::BatchSolver::get_max_iterations |
( |
| ) |
const |
|
inline |
Get the maximum number of iterations set on the solver.
- Returns
- Maximum number of iterations.
◆ get_preconditioner()
| std::shared_ptr< const BatchLinOp > gko::batch::solver::BatchSolver::get_preconditioner |
( |
| ) |
const |
|
inline |
Returns the generated preconditioner.
- Returns
- the generated preconditioner.
◆ get_system_matrix()
| std::shared_ptr< const BatchLinOp > gko::batch::solver::BatchSolver::get_system_matrix |
( |
| ) |
const |
|
inline |
Returns the system operator (matrix) of the linear system.
- Returns
- the system operator (matrix)
◆ get_tolerance()
| double gko::batch::solver::BatchSolver::get_tolerance |
( |
| ) |
const |
|
inline |
Get the residual tolerance used by the solver.
- Returns
- The residual tolerance.
◆ get_tolerance_type()
| ::gko::batch::stop::tolerance_type gko::batch::solver::BatchSolver::get_tolerance_type |
( |
| ) |
const |
|
inline |
Get the tolerance type.
- Returns
- The tolerance type.
◆ reset_max_iterations()
| void gko::batch::solver::BatchSolver::reset_max_iterations |
( |
int |
max_iterations | ) |
|
|
inline |
Set the maximum number of iterations for the solver to use, independent of the factory that created it.
- Parameters
-
| max_iterations | The maximum number of iterations for the solver. |
◆ reset_tolerance()
| void gko::batch::solver::BatchSolver::reset_tolerance |
( |
double |
res_tol | ) |
|
|
inline |
Update the residual tolerance to be used by the solver.
- Parameters
-
| res_tol | The residual tolerance to be used for subsequent invocations of the solver. |
◆ reset_tolerance_type()
| void gko::batch::solver::BatchSolver::reset_tolerance_type |
( |
::gko::batch::stop::tolerance_type |
tol_type | ) |
|
|
inline |
Set the type of tolerance check to use inside the solver
- Parameters
-
| tol_type | The tolerance type. |
The documentation for this class was generated from the following file: