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. More... | |
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),. More... | |
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)
Definition at line 87 of file row_scaling.hpp.
|
inline |
Constructor for the preconditioner.
mat | The system matrix |
tag | A row scaling tag holding the desired norm. |
Definition at line 97 of file row_scaling.hpp.
|
inline |
Apply to res = b - Ax, i.e. row applied vec (right hand side),.
Definition at line 133 of file row_scaling.hpp.
|
inline |
Definition at line 103 of file row_scaling.hpp.