29 #ifndef __MatrixValue_H
30 #define __MatrixValue_H 1
34 #include <boost/numeric/ublas/vector.hpp>
62 typedef value_type matrix_type;
63 typedef std::vector<std::set<size_type> > pattern_type;
65 static const bool is_row_major =
true;
103 unsigned int size1 ()
const
171 matrix_type
const&
mat ()
const
187 matrix_type
const&
wmat ()
const
223 void init (
const unsigned int ,
227 const unsigned int =30,
228 const unsigned int =10 )
261 void add (
const unsigned int ,
263 const value_type value )
271 void set (
const unsigned int ,
273 const value_type value )
286 void printMatlab(
const std::string name=
"NULL" )
const;
292 void fill( pattern_type
const& );
303 energy( ublas::vector<value_type>
const& ,
304 ublas::vector<value_type>
const& )
const
324 mutable matrix_type M_mat;
330 MatrixValue<T>::diagonalize(
size_type __dof_index )
332 FEELPP_ASSERT( 0 ).error(
"diagonalize is undefined for this matrix type" );
void set(const unsigned int, const unsigned int, const value_type value)
Definition: matrixvalue.hpp:271
bool isInitialized() const
Definition: matrixvalue.hpp:146
void init(const unsigned int, const unsigned int, const unsigned int, const unsigned int, const unsigned int=30, const unsigned int=10)
Definition: matrixvalue.hpp:223
bool closed() const
Definition: matrixvalue.hpp:162
matrix_type & wmat()
Definition: matrixvalue.hpp:195
void clear()
Definition: matrixvalue.hpp:239
matrix_type & mat()
Definition: matrixvalue.hpp:179
matrix_type const & wmat() const
Definition: matrixvalue.hpp:187
unsigned int rowStart() const
Definition: matrixvalue.hpp:129
size_type nnz() const
Definition: matrixvalue.hpp:120
void close() const
Definition: matrixvalue.hpp:342
unsigned int size2() const
Definition: matrixvalue.hpp:112
void fill(pattern_type const &)
Definition: matrixvalue.hpp:336
matrix_type const & mat() const
Definition: matrixvalue.hpp:171
unsigned int rowStop() const
Definition: matrixvalue.hpp:138
size_t size_type
Indices (starting from 0)
Definition: feelcore/feel.hpp:319
void printMatlab(const std::string name="NULL") const
Definition: matrixvalue.hpp:348
void zero()
Definition: matrixvalue.hpp:248
interface to matrix
Definition: matrixvalue.hpp:51
void add(const unsigned int, const unsigned int, const value_type value)
Definition: matrixvalue.hpp:261
value_type energy(ublas::vector< value_type > const &, ublas::vector< value_type > const &) const
Definition: matrixvalue.hpp:303