dune-common  2.2.0
Files | Namespaces | Classes | Functions
Dense Matrix and Vector Template Library
Common (foundation classes)

Type traits to retrieve the field and the real type of classes. More...

Files

file  densematrix.hh
 Implements a matrix constructed from a given type representing a field and a compile-time given number of rows and columns.
file  densevector.hh
 Implements the dense vector interface, with an exchangeable storage class.
file  dynmatrix.hh
 This file implements a dense matrix with dynamic numbers of rows and columns.
file  dynvector.hh
 This file implements a dense vector with a dynamic size.
file  fmatrix.hh
 Implements a matrix constructed from a given type representing a field and compile-time given number of rows and columns.
file  fvector.hh
 Implements a vector constructed from a given type representing a field and a compile-time given size.

Namespaces

namespace  Dune
 Dune namespace.
namespace  Dune::DenseMatrixHelp
namespace  Dune::fvmeta
namespace  Dune::FMatrixHelp

Classes

class  Dune::FMatrixError
 Error thrown if operations of a FieldMatrix fail. More...
class  Dune::DenseMatrix< MAT >
 A dense n x m matrix. More...
class  Dune::DenseIterator< C, T >
 Generic iterator class for dense vector and matrix implementations. More...
class  Dune::DenseVector< V >
 Interface for a class of dense vectors over a given field. More...
struct  Dune::DenseMatVecTraits< DynamicMatrix< K > >
struct  Dune::FieldTraits< DynamicMatrix< K > >
class  Dune::DynamicMatrix< K >
 Construct a matrix with a dynamic size. More...
struct  Dune::DenseMatVecTraits< DynamicVector< K > >
struct  Dune::FieldTraits< DynamicVector< K > >
class  Dune::DynamicVector< K >
 Construct a vector with a dynamic size. More...
struct  Dune::DenseMatVecTraits< FieldMatrix< K, ROWS, COLS > >
struct  Dune::FieldTraits< FieldMatrix< K, ROWS, COLS > >
class  Dune::FieldMatrix< K, ROWS, COLS >
 A dense n x m matrix. More...
struct  Dune::DenseMatVecTraits< FieldVector< K, SIZE > >
struct  Dune::FieldTraits< FieldVector< K, SIZE > >
struct  Dune::IsFieldVectorSizeCorrect< C, SIZE >
 TMP to check the size of a DenseVectors statically, if possible. More...
struct  Dune::IsFieldVectorSizeCorrect< FieldVector< T, SIZE >, SIZE >
struct  Dune::IsFieldVectorSizeCorrect< FieldVector< T, SIZE1 >, SIZE >
class  Dune::FieldVector< K, SIZE >
 vector space out of a tensor product of fields. More...
class  Dune::FMatrixPrecision< ctype >
 Precisions for calculations with FieldMatrix and FieldVector. More...

Functions

template<typename M , typename T >
void Dune::istl_assign_to_fmatrix (DenseMatrix< M > &f, const T &t)
 you have to specialize this function for any type T that should be assignable to a DenseMatrix
template<typename MAT >
std::ostream & Dune::operator<< (std::ostream &s, const DenseMatrix< MAT > &a)
 Sends the matrix to an output stream.
template<typename V >
std::ostream & operator<< (std::ostream &s, const DenseVector< V > &v)
 Write a DenseVector to an output stream.
template<class K >
std::istream & operator>> (std::istream &in, DynamicVector< K > &v)
 Read a DynamicVector from an input stream.
template<class K , int SIZE>
std::istream & operator>> (std::istream &in, FieldVector< K, SIZE > &v)
 Read a FieldVector from an input stream.

Detailed Description

Type traits to retrieve the field and the real type of classes.

Type Traits to retrieve types associated with an implementation of Dune::DenseVector or Dune::DenseMatrix.

Type traits to retrieve the field and the real type of classes e.g. that of FieldVector or FieldMatrix

you have to specialize this class for every implementation of DenseVector or DenseMatrix.

typedef ... derived_type;
typedef ... value_type;
typedef ... size_type;

Function Documentation

template<typename M , typename T >
void Dune::istl_assign_to_fmatrix ( DenseMatrix< M > &  f,
const T &  t 
)

you have to specialize this function for any type T that should be assignable to a DenseMatrix

Template Parameters:
MType of the matrix implementation class implementing the dense matrix

References DUNE_THROW.

template<typename V >
std::ostream & operator<< ( std::ostream &  s,
const DenseVector< V > &  v 
)
related

Write a DenseVector to an output stream.

Parameters:
[in]sstd :: ostream to write to
[in]vDenseVector to write
Returns:
the output stream (s)
template<typename MAT >
std::ostream& Dune::operator<< ( std::ostream &  s,
const DenseMatrix< MAT > &  a 
)

Sends the matrix to an output stream.

template<class K >
std::istream & operator>> ( std::istream &  in,
DynamicVector< K > &  v 
)
related

Read a DynamicVector from an input stream.

Note:
This operator is STL compilant, i.e., the content of v is only changed if the read operation is successful.
Parameters:
[in]instd :: istream to read from
[out]vDynamicVector to be read
Returns:
the input stream (in)

References Dune::DenseVector< DynamicVector< K > >::size().

template<class K , int SIZE>
std::istream & operator>> ( std::istream &  in,
FieldVector< K, SIZE > &  v 
)
related

Read a FieldVector from an input stream.

Note:
This operator is STL compliant, i.e., the content of v is only changed if the read operation is successful.
Parameters:
[in]instd :: istream to read from
[out]vFieldVector to be read
Returns:
the input stream (in)