AMG preconditioner class, can be supplied to solve()-routines.
More...
#include <amg.hpp>
|
| | amg_precond () |
| |
| | amg_precond (MatrixT const &mat, amg_tag const &tag) |
| | The constructor. Saves system matrix, tag and builds data structures for setup. More...
|
| |
| void | setup () |
| | Start setup phase for this class and copy data structures. More...
|
| |
| void | init_apply () const |
| | Prepare data structures for preconditioning: Build data structures for precondition phase. Do LU factorization on coarsest level. More...
|
| |
| template<typename VectorT > |
| NumericType | calc_complexity (VectorT &avgstencil) |
| | Returns complexity measures. More...
|
| |
| template<typename VectorT > |
| void | apply (VectorT &vec) const |
| | Precondition Operation. More...
|
| |
| template<typename VectorT > |
| void | smooth_jacobi (int level, int const iterations, VectorT &x, VectorT const &rhs_smooth) const |
| | (Weighted) Jacobi Smoother (CPU version) More...
|
| |
| amg_tag & | tag () |
| |
template<typename MatrixT>
class viennacl::linalg::amg_precond< MatrixT >
AMG preconditioner class, can be supplied to solve()-routines.
- Examples:
- amg.cpp.
Definition at line 344 of file amg.hpp.
template<typename MatrixT >
template<typename MatrixT >
The constructor. Saves system matrix, tag and builds data structures for setup.
- Parameters
-
| mat | System matrix |
| tag | The AMG tag |
Definition at line 381 of file amg.hpp.
template<typename MatrixT >
template<typename VectorT >
Precondition Operation.
- Parameters
-
| vec | The vector to which preconditioning is applied to (ublas version) |
Definition at line 450 of file amg.hpp.
template<typename MatrixT >
template<typename VectorT >
Returns complexity measures.
- Parameters
-
| avgstencil | Average stencil sizes on all levels |
- Returns
- Operator complexity of AMG method
Definition at line 422 of file amg.hpp.
template<typename MatrixT >
Prepare data structures for preconditioning: Build data structures for precondition phase. Do LU factorization on coarsest level.
Definition at line 406 of file amg.hpp.
template<typename MatrixT >
Start setup phase for this class and copy data structures.
Definition at line 392 of file amg.hpp.
template<typename MatrixT >
template<typename VectorT >
(Weighted) Jacobi Smoother (CPU version)
- Parameters
-
| level | Coarse level to which smoother is applied to |
| iterations | Number of smoother iterations |
| x | The vector smoothing is applied to |
| rhs_smooth | The right hand side of the equation for the smoother |
Definition at line 531 of file amg.hpp.
template<typename MatrixT >
The documentation for this class was generated from the following file: