Feel++ 0.91.0
Feel::MatrixShellSparse< T > Class Template Reference

Allow all sparse matrices to be shell matrices. More...

#include <matrixshellsparse.hpp>

Inheritance diagram for Feel::MatrixShellSparse< T >:
Feel::MatrixShell< T >

List of all members.

Public Types

Typedefs
typedef super::value_type value_type
typedef super::real_type real_type
typedef MatrixSparse< value_type > sparse_matrix_type
typedef boost::shared_ptr
< sparse_matrix_type
sparse_matrix_ptrtype

Public Member Functions

Constructors, destructor
 MatrixShellSparse (sparse_matrix_ptrtype m)
 ~MatrixShellSparse ()
Accessors
virtual size_type size1 () const
virtual size_type size2 () const
Methods
virtual void diagonal (vector_type &v)
 copies the diagonal of the matrix into v.
virtual void mult (vector_type const &arg, vector_type &dest)
 Multiplies the matrix with arg and stores the result in dest.
virtual void multAndAdd (vector_type const &arg, vector_type &dest)
 Multiplies the matrix with arg and adds the result to dest.

Detailed Description

template<typename T>
class Feel::MatrixShellSparse< T >

Allow all sparse matrices to be shell matrices.

Author:
Christophe Prud'homme
See also:

Member Function Documentation

template<typename T >
virtual size_type Feel::MatrixShellSparse< T >::size1 ( ) const [inline, virtual]
Returns:
m, the row-dimension of the matrix where the marix is $ M \times N $.

Implements Feel::MatrixShell< T >.

template<typename T >
virtual size_type Feel::MatrixShellSparse< T >::size2 ( ) const [inline, virtual]
Returns:
n, the column-dimension of the matrix where the marix is $ M \times N $.

Implements Feel::MatrixShell< T >.