ViennaCL - The Vienna Computing Library  1.5.0
Public Types | Public Member Functions
spai_precond< MatrixType > Class Template Reference

Implementation of the SParse Approximate Inverse Algorithm for a generic, uBLAS-compatible matrix type. More...

#include <spai.hpp>

Public Types

typedef MatrixType::value_type ScalarType
typedef
boost::numeric::ublas::vector
< ScalarType
VectorType

Public Member Functions

 spai_precond (const MatrixType &A, const spai_tag &tag)
 Constructor.
void apply (VectorType &vec) const
 Application of current preconditioner, multiplication on the right-hand side vector.

Detailed Description

template<typename MatrixType>
class viennacl::linalg::spai_precond< MatrixType >

Implementation of the SParse Approximate Inverse Algorithm for a generic, uBLAS-compatible matrix type.

Parameters:
Matrixmatrix that is used for computations
Vectorvector that is used for computations

Member Typedef Documentation

typedef MatrixType::value_type ScalarType
typedef boost::numeric::ublas::vector<ScalarType> VectorType

Constructor & Destructor Documentation

spai_precond ( const MatrixType &  A,
const spai_tag tag 
) [inline]

Constructor.

Parameters:
Amatrix whose approximate inverse is calculated. Must be quadratic.
tagspai tag

Member Function Documentation

void apply ( VectorType vec) const [inline]

Application of current preconditioner, multiplication on the right-hand side vector.

Parameters:
vecrhs vector

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