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;
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" );