ViennaCL - The Vienna Computing Library
1.5.2
|
Jacobi-type preconditioner class, can be supplied to solve()-routines. This is a diagonal preconditioner with the diagonal entries being (configurable) row norms of the matrix. More...
#include <row_scaling.hpp>
Public Member Functions | |
row_scaling (MatrixType const &mat, row_scaling_tag const &tag) | |
Constructor for the preconditioner. | |
void | init (MatrixType const &mat, row_scaling_tag const &tag) |
template<typename VectorType > | |
void | apply (VectorType &vec) const |
Apply to res = b - Ax, i.e. row applied vec (right hand side),. |
Jacobi-type preconditioner class, can be supplied to solve()-routines. This is a diagonal preconditioner with the diagonal entries being (configurable) row norms of the matrix.
Default implementation for non-native ViennaCL matrices (e.g. uBLAS)
row_scaling | ( | MatrixType const & | mat, |
row_scaling_tag const & | tag | ||
) | [inline] |
Constructor for the preconditioner.
mat | The system matrix |
tag | A row scaling tag holding the desired norm. |
void apply | ( | VectorType & | vec | ) | const [inline] |
Apply to res = b - Ax, i.e. row applied vec (right hand side),.
void init | ( | MatrixType const & | mat, |
row_scaling_tag const & | tag | ||
) | [inline] |