solver Namespace Reference#
|
Reference API
|
gko::solver Namespace Reference
The ginkgo Solve namespace. More...
Namespaces | |
| namespace | multigrid |
| The solver multigrid namespace. | |
Typedefs | |
| template<typename ValueType = default_precision> | |
| using | Richardson = Ir< ValueType > |
Enumerations | |
| enum class | initial_guess_mode { zero , rhs , provided } |
| enum class | trisolve_algorithm { sparselib , syncfree } |
Functions | |
| template<typename ValueType > | |
| auto | build_smoother (std::shared_ptr< const LinOpFactory > factory, size_type iteration=1, ValueType relaxation_factor=0.9) |
| template<typename ValueType > | |
| auto | build_smoother (std::shared_ptr< const LinOp > solver, size_type iteration=1, ValueType relaxation_factor=0.9) |
Variables | |
| constexpr size_type | gcr_default_krylov_dim = 100u |
| constexpr size_type | default_krylov_dim = 100u |
| constexpr size_type | gmres_default_krylov_dim = 100u |
Detailed Description
The ginkgo Solve namespace.
The ginkgo Solver namespace.
Enumeration Type Documentation
◆ initial_guess_mode
|
strong |
◆ trisolve_algorithm
|
strong |
A helper for algorithm selection in the triangular solvers. It currently only matters for the Cuda executor as there, we have a choice between the Ginkgo syncfree and cuSPARSE implementations.
Function Documentation
◆ build_smoother() [1/2]
template<typename ValueType >
| auto gko::solver::build_smoother | ( | std::shared_ptr< const LinOp > | solver, |
| size_type | iteration = 1, |
||
| ValueType | relaxation_factor = 0.9 |
||
| ) |
build_smoother gives a shortcut to build a smoother by IR(Richardson) with limited stop criterion(iterations and relacation_factor).
- Parameters
-
solver the shared pointer of solver iteration the maximum number of iteration, which default is 1 relaxation_factor the relaxation factor for Richardson
- Returns
- the pointer of Ir(Richardson)
- Note
- this is the overload function for LinOp.
◆ build_smoother() [2/2]
template<typename ValueType >
| auto gko::solver::build_smoother | ( | std::shared_ptr< const LinOpFactory > | factory, |
| size_type | iteration = 1, |
||
| ValueType | relaxation_factor = 0.9 |
||
| ) |
build_smoother gives a shortcut to build a smoother by IR(Richardson) with limited stop criterion(iterations and relacation_factor).
- Parameters
-
factory the shared pointer of factory iteration the maximum number of iteration, which default is 1 relaxation_factor the relaxation factor for Richardson
- Returns
- the pointer of Ir(Richardson)
Generated by