dune-fem  2.4.1-rc
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > > Class Template Reference

convert a FieldVector with length n * m to a FieldMatrix with n rows and m cols More...

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/misc/fmatrixconverter.hh>

Inheritance diagram for Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >:
Inheritance graph

Public Types

enum  { rows = n, cols = m, dimension = n * m }
 
typedef FieldVector< K, n *m > InteralVectorType
 internal storage of matrix More...
 
typedef Base::row_type row_type
 type of class return upon operator [] which behaves like a reference More...
 
typedef Base::row_reference row_reference
 
typedef Base::const_row_reference const_row_reference
 
typedef K field_type
 export the type representing the field More...
 
typedef K block_type
 export the type representing the components More...
 
typedef std::size_t size_type
 The type used for the index access and size operations. More...
 

Public Member Functions

 FieldMatrixConverter (InteralVectorType &v)
 
 FieldMatrixConverter (const InteralVectorType &v)
 
 FieldMatrixConverter (const FieldMatrixConverter &other)
 
FieldMatrixConverteroperator= (const FieldMatrixConverter &other)
 
FieldMatrixConverteroperator= (const FieldMatrix< K, n, m > &matrix)
 
FieldMatrixConverteroperator+= (const FieldMatrix< K, n, m > &matrix)
 
size_type mat_rows () const
 
size_type mat_cols () const
 
row_reference mat_access (size_type i)
 
const_row_reference mat_access (size_type i) const
 

Protected Attributes

InteralVectorTypevec_
 
bool mutableVec_
 

Friends

std::ostream & operator<< (std::ostream &s, const FieldMatrixConverter &a)
 Sends the matrix to an output stream. More...
 

Detailed Description

template<typename K, int n, int m>
class Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >

convert a FieldVector with length n * m to a FieldMatrix with n rows and m cols

Member Typedef Documentation

template<typename K , int n, int m>
typedef K Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::block_type

export the type representing the components

template<typename K , int n, int m>
typedef Base::const_row_reference Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::const_row_reference
template<typename K , int n, int m>
typedef K Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::field_type

export the type representing the field

template<typename K , int n, int m>
typedef FieldVector< K, n *m > Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::InteralVectorType

internal storage of matrix

template<typename K , int n, int m>
typedef Base::row_reference Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::row_reference
template<typename K , int n, int m>
typedef Base::row_type Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::row_type

type of class return upon operator [] which behaves like a reference

template<typename K , int n, int m>
typedef std::size_t Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::size_type

The type used for the index access and size operations.

Member Enumeration Documentation

template<typename K , int n, int m>
anonymous enum
Enumerator
rows 

The number of rows.

cols 

The number of columns.

dimension 

The total dimension.

Constructor & Destructor Documentation

template<typename K , int n, int m>
Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::FieldMatrixConverter ( InteralVectorType v)
inline
template<typename K , int n, int m>
Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::FieldMatrixConverter ( const InteralVectorType v)
inline
template<typename K , int n, int m>
Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::FieldMatrixConverter ( const FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > > &  other)
inline

Member Function Documentation

template<typename K , int n, int m>
row_reference Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::mat_access ( size_type  i)
inline
template<typename K , int n, int m>
const_row_reference Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::mat_access ( size_type  i) const
inline
template<typename K , int n, int m>
size_type Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::mat_cols ( ) const
inline
template<typename K , int n, int m>
size_type Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::mat_rows ( ) const
inline
template<typename K , int n, int m>
FieldMatrixConverter& Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::operator+= ( const FieldMatrix< K, n, m > &  matrix)
inline
template<typename K , int n, int m>
FieldMatrixConverter& Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::operator= ( const FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > > &  other)
inline
template<typename K , int n, int m>
FieldMatrixConverter& Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::operator= ( const FieldMatrix< K, n, m > &  matrix)
inline

Friends And Related Function Documentation

template<typename K , int n, int m>
std::ostream& operator<< ( std::ostream &  s,
const FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > > &  a 
)
friend

Sends the matrix to an output stream.

Member Data Documentation

template<typename K , int n, int m>
bool Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::mutableVec_
protected
template<typename K , int n, int m>
InteralVectorType* Dune::Fem::FieldMatrixConverter< FieldVector< K, n *m >, FieldMatrix< K, n, m > >::vec_
protected

The documentation for this class was generated from the following file: