AMG preconditioner class, can be supplied to solve()-routines.
More...
#include <amg.hpp>
template<typename ScalarType, unsigned int MAT_ALIGNMENT>
class viennacl::linalg::amg_precond< compressed_matrix< ScalarType, MAT_ALIGNMENT > >
AMG preconditioner class, can be supplied to solve()-routines.
Specialization for compressed_matrix
The constructor. Builds data structures.
- Parameters
-
mat | System matrix |
tag | The AMG tag |
Precondition Operation.
- Parameters
-
vec | The vector to which preconditioning is applied to |
ScalarType calc_complexity |
( |
VectorType & |
avgstencil | ) |
|
|
inline |
Returns complexity measures.
- Parameters
-
avgstencil | Average stencil sizes on all levels |
- Returns
- Operator complexity of AMG method
void init_apply |
( |
| ) |
const |
|
inline |
Prepare data structures for preconditioning: Build data structures for precondition phase. Do LU factorization on coarsest level.
Start setup phase for this class and copy data structures.
void smooth_jacobi |
( |
int |
level, |
|
|
unsigned int |
iterations, |
|
|
VectorType & |
x, |
|
|
VectorType const & |
rhs |
|
) |
| const |
|
inline |
Jacobi Smoother (GPU version)
- Parameters
-
level | Coarse level to which smoother is applied to |
iterations | Number of smoother iterations |
x | The vector smoothing is applied to |
rhs | The right hand side of the equation for the smoother |
The documentation for this class was generated from the following file:
- /build/buildd/viennacl-1.5.2/viennacl/linalg/amg.hpp