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>
template<typename MatrixType, bool is_viennacl = detail::row_scaling_for_viennacl<MatrixType>::value>
class viennacl::linalg::row_scaling< MatrixType, is_viennacl >
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)
Constructor for the preconditioner.
- Parameters
-
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),.
The documentation for this class was generated from the following file: