3 #ifndef DUNE_DYNMATRIX_HH 4 #define DUNE_DYNMATRIX_HH 40 typedef typename container_type::size_type
size_type;
57 std::vector< DynamicVector<K> > _data;
70 _data(r, row_type(c, v) )
74 void resize (size_type r, size_type c, value_type v = value_type() )
77 _data.resize(r, row_type(c, v) );
81 using Base::operator=;
84 size_type
mat_rows()
const {
return _data.size(); }
87 return _data.front().size();
90 const row_type &
mat_access(size_type i)
const {
return _data[i]; }
void resize(size_type r, size_type c, value_type v=value_type())
Definition: dynmatrix.hh:74
Traits::value_type value_type
export the type representing the field
Definition: densematrix.hh:199
This file implements a dense vector with a dynamic size.
K value_type
Definition: dynmatrix.hh:39
FieldTraits< K >::real_type real_type
Definition: dynmatrix.hh:47
T real_type
export the type representing the real type of the field
Definition: ftraits.hh:27
Base::value_type value_type
Definition: dynmatrix.hh:61
row_type & row_reference
Definition: dynmatrix.hh:35
DynamicMatrix< K > derived_type
Definition: dynmatrix.hh:31
A dense n x m matrix.
Definition: densematrix.hh:22
size_type mat_cols() const
Definition: dynmatrix.hh:85
row_type & mat_access(size_type i)
Definition: dynmatrix.hh:89
Base::size_type size_type
Definition: dynmatrix.hh:60
const row_type & mat_access(size_type i) const
Definition: dynmatrix.hh:90
container_type::size_type size_type
Definition: dynmatrix.hh:40
Construct a matrix with a dynamic size.
Definition: dynmatrix.hh:26
Base::row_type row_type
Definition: dynmatrix.hh:62
Definition: ftraits.hh:22
std::vector< K > container_type
Definition: dynmatrix.hh:38
DynamicMatrix(size_type r, size_type c, value_type v=value_type())
Constructor initializing the whole matrix with a scalar.
Definition: dynmatrix.hh:69
FieldTraits< K >::field_type field_type
Definition: dynmatrix.hh:46
char c
Definition: alignment.hh:33
size_type mat_rows() const
Definition: dynmatrix.hh:84
A few common exception classes.
Implements a matrix constructed from a given type representing a field and a compile-time given numbe...
Definition: matvectraits.hh:29
DynamicMatrix()
Default constructor.
Definition: dynmatrix.hh:66
DynamicVector< K > row_type
Definition: dynmatrix.hh:33
T field_type
export the type representing the field
Definition: ftraits.hh:25
Dune namespace.
Definition: alignment.hh:9
Traits::size_type size_type
The type used for the index access and size operation.
Definition: densematrix.hh:208
const row_type & const_row_reference
Definition: dynmatrix.hh:36