OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
AppFrame::MatrixBlock< MATRIX > Struct Template Reference

A wrapper around a matrix object, storing the coordinates in a block matrix as well. More...

#include <matrix_base.h>

Public Member Functions

 MatrixBlock ()
 Constructor.
 
 MatrixBlock (const MatrixBlock< MATRIX > &M)
 Constructor.
 
 MatrixBlock (unsigned int i, unsigned int j)
 Constructor.
 

Public Attributes

unsigned int row
 Row coordinate.
 
unsigned int column
 Column coordinate.
 
MATRIX matrix
 The matrix itself.
 

Detailed Description

template<class MATRIX>
struct AppFrame::MatrixBlock< MATRIX >

A wrapper around a matrix object, storing the coordinates in a block matrix as well.

Note
They are the position in the global matrix, where I don't use BlockSparseMatrix. Matrices may have the same coordinates for the following reason: A preconditioner for the Oseen system can be built as a block system, where the pressure block is of the form M^-1 F A^-1 with m the mass matrix (u,v), A the Laplacian and F the advection diffusion operator. So, I need to build three matrices for a single block in my system + in some cases a pressure stabilization.
Author
Guido Kanschat, 2006

Constructor & Destructor Documentation

template<class MATRIX>
AppFrame::MatrixBlock< MATRIX >::MatrixBlock ( )
inline

Constructor.

template<class MATRIX>
AppFrame::MatrixBlock< MATRIX >::MatrixBlock ( const MatrixBlock< MATRIX > &  M)
inline

Constructor.

template<class MATRIX>
AppFrame::MatrixBlock< MATRIX >::MatrixBlock ( unsigned int  i,
unsigned int  j 
)
inline

Constructor.

Member Data Documentation

template<class MATRIX>
unsigned int AppFrame::MatrixBlock< MATRIX >::column

Column coordinate.

This is the position of the data member matrix on the global matrix.

template<class MATRIX>
MATRIX AppFrame::MatrixBlock< MATRIX >::matrix

The matrix itself.

template<class MATRIX>
unsigned int AppFrame::MatrixBlock< MATRIX >::row

Row coordinate.

This is the position of the data member matrix on the global matrix.


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