29 #ifndef __MatrixShellSparse_H
30 #define __MatrixShellSparse_H 1
55 typedef typename super::value_type value_type;
56 typedef typename super::real_type real_type;
58 typedef boost::shared_ptr<sparse_matrix_type> sparse_matrix_ptrtype;
60 typedef typename super::vector_ptrtype vector_ptrtype;
131 sparse_matrix_ptrtype M_m;
void diagonal(vector_type &v) const
copies the diagonal of the matrix into v.
Definition: matrixshellsparse.cpp:35
Definition: solverlinear.hpp:33
void multVector(vector_type const &in, vector_type &out) const
Multiplies the matrix with arg and stores the result in dest.
Definition: matrixshellsparse.cpp:40
virtual size_type size1() const
Definition: matrixshellsparse.hpp:88
void multAddVector(vector_type const &in, vector_type &out) const
Multiplies the matrix with arg and adds the result to dest.
Definition: matrixshellsparse.cpp:48
size_t size_type
Indices (starting from 0)
Definition: feelcore/feel.hpp:319
Allow all sparse matrices to be shell matrices.
Definition: matrixshellsparse.hpp:45
Definition: matrixsparse.hpp:76
virtual size_type size2() const
Definition: matrixshellsparse.hpp:97
matrices that define its action against a vector
Definition: matrixshell.hpp:49