Logo  0.95.0-final
Finite Element Embedded Library and Language in C++
Feel++ Feel++ on Github Feel++ community
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Feel::MatrixShellSparse< T > Class Template Reference

#include <matrixshellsparse.hpp>

Detailed Description

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

Allow all sparse matrices to be shell matrices.

Author
Christophe Prud'homme
See Also
+ Inheritance diagram for Feel::MatrixShellSparse< T >:

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
 
typedef super::vector_type vector_type
 
typedef super::vector_ptrtype vector_ptrtype
 
- Public Types inherited from Feel::MatrixShell< T >
typedef T value_type
 
typedef type_traits< T >::real_type real_type
 
typedef Vector< T > vector_type
 
typedef boost::shared_ptr
< Vector< T > > 
vector_ptrtype
 

Public Member Functions

Constructors, destructor
 MatrixShellSparse (sparse_matrix_ptrtype m)
 
 ~MatrixShellSparse ()
 
Accessors
virtual size_type size1 () const
 
virtual size_type size2 () const
 
Methods
void diagonal (vector_type &v) const
 copies the diagonal of the matrix into v.
 
void multVector (vector_type const &in, vector_type &out) const
 Multiplies the matrix with arg and stores the result in dest.
 
void multAddVector (vector_type const &in, vector_type &out) const
 Multiplies the matrix with arg and adds the result to dest.
 
- Public Member Functions inherited from Feel::MatrixShell< T >
 MatrixShell ()
 
virtual ~MatrixShell ()
 
void diagonal (boost::shared_ptr< Vector< T > > &dest) const
 
void multVector (const boost::shared_ptr< Vector< T > > &arg, boost::shared_ptr< Vector< T > > &dest) const
 
void multAddVector (const boost::shared_ptr< Vector< T > > &arg, boost::shared_ptr< Vector< T > > &dest) const
 

Member Function Documentation

template<typename T >
virtual size_type Feel::MatrixShellSparse< T >::size1 ( ) const
inlinevirtual
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
inlinevirtual
Returns
n, the column-dimension of the matrix where the marix is $ M \times N $.

Implements Feel::MatrixShell< T >.


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

Generated on Sun Oct 20 2013 08:25:08 for Feel++ by doxygen 1.8.4