BlockMatrix Class Reference

#include <usermatrix.h>

Inheritance diagram for BlockMatrix:
Inheritance graph
[legend]
Collaboration diagram for BlockMatrix:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void set_dim ()
 BlockMatrix (int n=0)
 (Standard-)Constructor for the dimension.
 BlockMatrix (const vector< ivector > &block_)
 Constructor for the block-structure.
 BlockMatrix (const vector< ivector > &block_, const vector< Pointer< UserMatrix > > &A_)
 Constructor for the block-structure and matrix-structure.
 BlockMatrix (Pointer< UserMatrix > A_)
 Constructor for one block with a simple block-structure.
 BlockMatrix (const BlockMatrix &b)
 Copy-Constructor.
void MultV (UserVector< double > &y, const UserVector< double > &x) const
 Multiplies with a UserVector<double>.
double yAx (const UserVector< double > &y, const UserVector< double > &x) const
 Multiplies from left and from right with UserVector<double>'s.
void MultV (IntervalVector &y, const IntervalVector &x) const
interval< double > yAx (const IntervalVector &y, const IntervalVector &x) const
Pointer< UserMatrixoperator[] (int k) const
 Gives a pointer to the matrix of the k-th block.
void print (ostream &out) const
 Prints out some information about this matrix.

Public Attributes

vector< Pointer< UserMatrix > > A
 The matrices of each block.
vector< ivectorblock
 The block-structure.

Detailed Description

Definition at line 656 of file usermatrix.h.


Constructor & Destructor Documentation

BlockMatrix::BlockMatrix ( int  n = 0  )  [inline]

(Standard-)Constructor for the dimension.

Parameters:
n The dimension, default is 0.

Definition at line 680 of file usermatrix.h.

BlockMatrix::BlockMatrix ( const vector< ivector > &  block_  )  [inline]

Constructor for the block-structure.

Parameters:
block_ The block-structure.

Definition at line 692 of file usermatrix.h.

BlockMatrix::BlockMatrix ( const vector< ivector > &  block_,
const vector< Pointer< UserMatrix > > &  A_ 
) [inline]

Constructor for the block-structure and matrix-structure.

Parameters:
block_ The block-structure to copy.
A_ The Pointer to the matrices of each block.

Definition at line 705 of file usermatrix.h.

BlockMatrix::BlockMatrix ( Pointer< UserMatrix A_  )  [inline]

Constructor for one block with a simple block-structure.

Parameters:
A_ The pointer to the matrix for this block.

Definition at line 717 of file usermatrix.h.

BlockMatrix::BlockMatrix ( const BlockMatrix b  )  [inline]

Copy-Constructor.

Parameters:
b The BlockMatrix to copy.

Definition at line 732 of file usermatrix.h.


Member Function Documentation

void BlockMatrix::set_dim (  )  [inline]

Definition at line 672 of file usermatrix.h.

void BlockMatrix::MultV ( UserVector< double > &  y,
const UserVector< double > &  x 
) const [virtual]

Multiplies with a UserVector<double>.

Parameters:
y The UserVector<double> to store the result (this*x) in.
x The UserVector<double> to multiply with.

Implements UserMatrix.

double BlockMatrix::yAx ( const UserVector< double > &  y,
const UserVector< double > &  x 
) const [virtual]

Multiplies from left and from right with UserVector<double>'s.

Parameters:
y The UserVector<double> to multiply with from left.
x The UserVector<double> to multiply with from right.
Returns:
The double value y*this*x.
See also:
UserMatrix::xAx(const UserVector<double>&)

Reimplemented from UserMatrix.

void BlockMatrix::MultV ( IntervalVector y,
const IntervalVector x 
) const [virtual]
interval<double> BlockMatrix::yAx ( const IntervalVector y,
const IntervalVector x 
) const [virtual]

Reimplemented from IntervalCompliantMatrix.

Pointer<UserMatrix> BlockMatrix::operator[] ( int  k  )  const [inline]

Gives a pointer to the matrix of the k-th block.

Parameters:
k The block-nr.
Returns:
The matrix for the k-th block.

Definition at line 766 of file usermatrix.h.

void BlockMatrix::print ( ostream &  out  )  const [inline, virtual]

Prints out some information about this matrix.

Prints the dimension, the block-structure and the matrix of each defined block.

Parameters:
out The ostream to print to.

Reimplemented from UserMatrix.

Definition at line 774 of file usermatrix.h.


Member Data Documentation

The matrices of each block.

Definition at line 666 of file usermatrix.h.

The block-structure.

Definition at line 670 of file usermatrix.h.


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

Generated on 10 Mar 2013 for LaGO by  doxygen 1.6.1