Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

vnl_sparse_matrix_linear_system< T > Class Template Reference

#include <vnl_sparse_matrix_linear_system.h>

Inheritance diagram for vnl_sparse_matrix_linear_system:

Inheritance graph
[legend]
Collaboration diagram for vnl_sparse_matrix_linear_system< T >:

Collaboration graph
[legend]
List of all members.

Public Methods

 vnl_sparse_matrix_linear_system (vnl_sparse_matrix< T > const &A, vnl_vector< T > const &b)
void multiply (vnl_vector< double > const &x, vnl_vector< double > &b) const
void transpose_multiply (vnl_vector< double > const &b, vnl_vector< double > &x) const
void get_rhs (vnl_vector< double > &b) const
void apply_preconditioner (vnl_vector< double > const &x, vnl_vector< double > &px) const

Protected Attributes

vnl_sparse_matrix< T > const & A_
vnl_vector< T > const & b_
vnl_vector< double > jacobi_precond_

Detailed Description

template<class T>
class vnl_sparse_matrix_linear_system< T >

vnl_sparse_matrix -> vnl_linear_system adaptor. An adaptor that converts a vnl_sparse_matrix<T> to a vnl_linear_system

Definition at line 24 of file vnl_sparse_matrix_linear_system.h.


Constructor & Destructor Documentation

template<class T>
vnl_sparse_matrix_linear_system< T >::vnl_sparse_matrix_linear_system vnl_sparse_matrix< T > const &    A,
vnl_vector< T > const &    b
[inline]
 

:Constructor from vnl_sparse_matrix<double> for system Ax = b. Keeps a reference to the original sparse matrix A and vector b so DO NOT DELETE THEM!!

Definition at line 29 of file vnl_sparse_matrix_linear_system.h.

References vnl_sparse_matrix_linear_system< T >::A_, vnl_sparse_matrix_linear_system< T >::b_, and vnl_sparse_matrix_linear_system< T >::jacobi_precond_.


Member Function Documentation

template<class T>
void vnl_sparse_matrix_linear_system< T >::apply_preconditioner vnl_vector< double > const &    x,
vnl_vector< double > &    px
const [virtual]
 

Implementations of the vnl_linear_system virtuals.

Reimplemented from vnl_linear_system.

template<class T>
void vnl_sparse_matrix_linear_system< T >::get_rhs vnl_vector< double > &    b const [virtual]
 

Implementations of the vnl_linear_system virtuals.

Implements vnl_linear_system.

template<class T>
void vnl_sparse_matrix_linear_system< T >::multiply vnl_vector< double > const &    x,
vnl_vector< double > &    b
const [virtual]
 

Implementations of the vnl_linear_system virtuals.

Implements vnl_linear_system.

template<class T>
void vnl_sparse_matrix_linear_system< T >::transpose_multiply vnl_vector< double > const &    b,
vnl_vector< double > &    x
const [virtual]
 

Implementations of the vnl_linear_system virtuals.

Implements vnl_linear_system.


Member Data Documentation

template<class T>
vnl_sparse_matrix<T> const& vnl_sparse_matrix_linear_system< T >::A_ [protected]
 

Definition at line 46 of file vnl_sparse_matrix_linear_system.h.

Referenced by vnl_sparse_matrix_linear_system< T >::vnl_sparse_matrix_linear_system().

template<class T>
vnl_vector<T> const& vnl_sparse_matrix_linear_system< T >::b_ [protected]
 

Definition at line 47 of file vnl_sparse_matrix_linear_system.h.

Referenced by vnl_sparse_matrix_linear_system< T >::vnl_sparse_matrix_linear_system().

template<class T>
vnl_vector<double> vnl_sparse_matrix_linear_system< T >::jacobi_precond_ [protected]
 

Definition at line 48 of file vnl_sparse_matrix_linear_system.h.

Referenced by vnl_sparse_matrix_linear_system< T >::vnl_sparse_matrix_linear_system().


The documentation for this class was generated from the following file:
Generated at Fri May 21 01:17:28 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000