1#ifndef DUNE_FEM_COMMON_FMATRIXCOL_HH
2#define DUNE_FEM_COMMON_FMATRIXCOL_HH
6#include <dune/common/densevector.hh>
7#include <dune/common/fmatrix.hh>
15 template<
class FieldMatrix >
23 template<
class FieldMatrix >
28 typedef typename DenseMatVecTraits< typename std::remove_const< FieldMatrix >::type >::value_type
value_type;
29 typedef typename DenseMatVecTraits< typename std::remove_const< FieldMatrix >::type >::size_type
size_type;
36 template<
class FieldMatrix >
39 typedef typename FieldTraits< typename std::remove_const< FieldMatrix >::type >::field_type
field_type;
40 typedef typename FieldTraits< typename std::remove_const< FieldMatrix >::type >::real_type
real_type;
48 template<
class K,
int m,
int n >
50 :
public DenseVector< FieldMatrixColumn< FieldMatrix< K, m, n > > >
52 typedef DenseVector< FieldMatrixColumn< FieldMatrix< K, m, n > > > Base;
55 static const int dimension = m;
61 : fieldMatrix_( fieldMatrix ),
65 using Base::operator=;
73 FieldMatrix< K, m, n > &fieldMatrix_;
77 template<
class K,
int m,
int n >
79 :
public DenseVector< FieldMatrixColumn< const FieldMatrix< K, m, n > > >
81 typedef DenseVector< FieldMatrixColumn< const FieldMatrix< K, m, n > > > Base;
84 static const int dimension = m;
90 : fieldMatrix_( fieldMatrix ),
94 using Base::operator=;
100 const FieldMatrix< K, m, n > &fieldMatrix_;
Definition: bindguard.hh:11
Definition: fmatrixcol.hh:16
FieldMatrixColumn< FieldMatrix > derived_type
Definition: fmatrixcol.hh:26
DenseMatVecTraits< typenamestd::remove_const< FieldMatrix >::type >::size_type size_type
Definition: fmatrixcol.hh:29
DenseMatVecTraits< typenamestd::remove_const< FieldMatrix >::type >::value_type value_type
Definition: fmatrixcol.hh:28
FieldTraits< typenamestd::remove_const< FieldMatrix >::type >::field_type field_type
Definition: fmatrixcol.hh:39
FieldTraits< typenamestd::remove_const< FieldMatrix >::type >::real_type real_type
Definition: fmatrixcol.hh:40
FieldMatrixColumn(FieldMatrix< K, m, n > &fieldMatrix, int column)
Definition: fmatrixcol.hh:60
constexpr size_type size() const
Definition: fmatrixcol.hh:67
Base::size_type size_type
Definition: fmatrixcol.hh:57
Base::value_type value_type
Definition: fmatrixcol.hh:58
Base::size_type size_type
Definition: fmatrixcol.hh:86
Base::value_type value_type
Definition: fmatrixcol.hh:87
FieldMatrixColumn(const FieldMatrix< K, m, n > &fieldMatrix, int column)
Definition: fmatrixcol.hh:89
constexpr size_type size() const
Definition: fmatrixcol.hh:96