Public Types | Public Member Functions
MatrixBlockVector< MATRIX > Class Template Reference
Inheritance diagram for MatrixBlockVector< MATRIX >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef MatrixBlock< MATRIX > value_type

Public Member Functions

void add (unsigned int row, unsigned int column, const std::string &name)
void reinit (const BlockSparsityPattern &sparsity)
void clear (bool really_clean=false)
unsigned int memory_consumption () const
const value_type & block (unsigned int i) const
value_type & block (unsigned int i)
MATRIX & matrix (unsigned int i)

Detailed Description

template<class MATRIX>
class MatrixBlockVector< MATRIX >

A vector of MatrixBlock, which is implemented using shared pointers, in order to allow for copying and rearranging. Each matrix block can be identified by name.

Author:
Baerbel Janssen, Guido Kanschat, 2010

Member Typedef Documentation

template<class MATRIX>
typedef MatrixBlock<MATRIX> MatrixBlockVector< MATRIX >::value_type

The type of object stored.


Member Function Documentation

template<class MATRIX >
void MatrixBlockVector< MATRIX >::add ( unsigned int  row,
unsigned int  column,
const std::string &  name 
) [inline]

Add a new matrix block at the position (row,column) in the block system.

template<class MATRIX >
void MatrixBlockVector< MATRIX >::reinit ( const BlockSparsityPattern &  sparsity) [inline]

For matrices using a SparsityPattern, this function reinitializes each matrix in the vector with the correct pattern from the block system.

template<class MATRIX >
void MatrixBlockVector< MATRIX >::clear ( bool  really_clean = false) [inline]

Clears the object.

Since often only clearing of the individual matrices is desired, but not removing the blocks themselves, there is an optional argument. If the argument is missing or false, all matrices will be mepty, but the size of this object and the block positions will not change. If really_clean is true, then the object will contain no blocks at the end.

References Assert, StandardExceptions::ExcNotImplemented(), and LAPACKSupport::matrix.

template<class MATRIX>
unsigned int MatrixBlockVector< MATRIX >::memory_consumption ( ) const

The memory used by this object.

template<class MATRIX >
const MatrixBlock< MATRIX > & MatrixBlockVector< MATRIX >::block ( unsigned int  i) const [inline]

Access a constant reference to the block at position i.

Referenced by MeshWorker::LocalResults< number >::initialize_matrices().

template<class MATRIX >
MatrixBlock< MATRIX > & MatrixBlockVector< MATRIX >::block ( unsigned int  i) [inline]

Access a reference to the block at position i.

template<class MATRIX >
MATRIX & MatrixBlockVector< MATRIX >::matrix ( unsigned int  i) [inline]

Access the matrix at position i for read and write access.

References LAPACKSupport::matrix.


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

deal.II documentation generated on Fri Aug 12 2011 15:01:05 by doxygen 1.7.4