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

matrices that define its action against a vector More...

#include <matrixshell.hpp>

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

List of all members.

Public Types

Typedefs
typedef T value_type
typedef type_traits< T >::real_type real_type

Public Member Functions

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

Detailed Description

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

matrices that define its action against a vector

Generic shell matrix, i.e. a matrix that does not define anything but its action on a vector. This class contains pure virtual members that must be overloaded in derived classes.

Author:
Christophe Prud'homme
See also:
MatrixSparse

Member Function Documentation

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

Implemented in Feel::MatrixShellSparse< T >.

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

Implemented in Feel::MatrixShellSparse< T >.