ViennaCL - The Vienna Computing Library  1.5.0
Public Member Functions
row_scaling< MatrixType, is_viennacl > Class Template Reference

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),.

Detailed Description

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 & Destructor Documentation

row_scaling ( MatrixType const &  mat,
row_scaling_tag const &  tag 
) [inline]

Constructor for the preconditioner.

Parameters:
matThe system matrix
tagA row scaling tag holding the desired norm.

Member Function Documentation

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]

The documentation for this class was generated from the following file: