4 #ifndef DUNE_DYNMATRIX_HH
5 #define DUNE_DYNMATRIX_HH
42 typedef typename container_type::size_type
size_type;
59 std::vector< DynamicVector<K> > _data;
72 _data(r, row_type(c, v) )
83 using Base::operator=;
86 size_type
mat_rows()
const {
return _data.size(); }
89 return _data.front().size();
92 const row_type &
mat_access(size_type i)
const {
return _data[i]; }
const row_type & const_row_reference
Definition: dynmatrix.hh:38
This file implements a dense vector with a dynamic size.
std::vector< K > container_type
Definition: dynmatrix.hh:40
Dune namespace.
Definition: alignment.hh:13
DynamicMatrix()
Default constructor.
Definition: dynmatrix.hh:68
A few common exception classes.
Fallback implementation of the C++0x static_assert feature.
Implements a matrix constructed from a given type representing a field and a compile-time given numbe...
size_type mat_rows() const
Definition: dynmatrix.hh:86
Traits::size_type size_type
The type used for the index access and size operation.
Definition: densematrix.hh:215
container_type::size_type size_type
Definition: dynmatrix.hh:42
char c
Definition: alignment.hh:37
const row_type & mat_access(size_type i) const
Definition: dynmatrix.hh:92
Base::row_type row_type
Definition: dynmatrix.hh:64
DynamicMatrix< K > derived_type
Definition: dynmatrix.hh:33
Traits::value_type value_type
export the type representing the field
Definition: densematrix.hh:206
Construct a matrix with a dynamic size.
Definition: dynmatrix.hh:28
T field_type
export the type representing the field
Definition: ftraits.hh:26
size_type mat_cols() const
Definition: dynmatrix.hh:87
K value_type
Definition: dynmatrix.hh:41
DynamicMatrix(size_type r, size_type c, value_type v=value_type())
Constructor initializing the whole matrix with a scalar.
Definition: dynmatrix.hh:71
Construct a vector with a dynamic size.
Definition: dynvector.hh:30
void resize(size_type r, size_type c, value_type v=value_type())
Definition: dynmatrix.hh:76
row_type & mat_access(size_type i)
Definition: dynmatrix.hh:91
T real_type
export the type representing the real type of the field
Definition: ftraits.hh:28
A dense n x m matrix.
Definition: densematrix.hh:24
Base::value_type value_type
Definition: dynmatrix.hh:63
Definition: ftraits.hh:23
FieldTraits< K >::real_type real_type
Definition: dynmatrix.hh:49
size_type rows() const
number of rows
Definition: densematrix.hh:704
DynamicVector< K > row_type
Definition: dynmatrix.hh:35
FieldTraits< K >::field_type field_type
Definition: dynmatrix.hh:48
Base::size_type size_type
Definition: dynmatrix.hh:62
row_type & row_reference
Definition: dynmatrix.hh:37
Definition: matvectraits.hh:30