class Matrix

Abstract data type matrix

Inheritance:


Public Methods

Matrix(int s)
Creates matrix of width s.
inline int Size() const
Returns the width of a matrix.
virtual double& Elem(int i, int j)
Returns reference to a_{ij}. Index i, j = 0 .. size-1
virtual const double& Elem(int i, int j) const
Returns constant reference to a_{ij}. Index i, j = 0 .. size-1
virtual void Mult(const Vector & x, Vector & y) const
Matrix vector multiplication.
virtual void AddElementMatrix(const Array<int> & dofs, const Matrix & elemmat)
Add (element) submatrix to the matrix.
virtual void AddElementMatrix(const Array<int> & dofs1, const Array<int> & dofs2, const RectangularMatrix & elemmat)
Add (element) submatrix to the matrix.
virtual MatrixInverse* Inverse() const
Returns a pointer to (approximation) of the matrix inverse.
CGMatrixInverse* CG(int printiter = 0, int maxnumiter = 1000, double rtol = 10e-12, double atol = 10e-24) const
Returns a pointer to CGMatrixInverse class
PCGMatrixInverse* PCG(const MatrixInverse & b, int printiter = 0, int maxnumiter = 1000, double rtol = 10e-12, double atol = 10e-24) const
Returns a pointer to PCGMatrixInverse class
virtual void Finalize()
Finalizes the matrix initialization.
virtual void Print(ostream & out = cout, int width =4)
Prints matrix to stream out.
virtual ~Matrix()
Destroys matrix.

Documentation

Abstract data type matrix
Matrix(int s)
Creates matrix of width s.

inline int Size() const
Returns the width of a matrix.

virtual double& Elem(int i, int j)
Returns reference to a_{ij}. Index i, j = 0 .. size-1

virtual const double& Elem(int i, int j) const
Returns constant reference to a_{ij}. Index i, j = 0 .. size-1

virtual void Mult(const Vector & x, Vector & y) const
Matrix vector multiplication.

virtual void AddElementMatrix(const Array<int> & dofs, const Matrix & elemmat)
Add (element) submatrix to the matrix.

virtual void AddElementMatrix(const Array<int> & dofs1, const Array<int> & dofs2, const RectangularMatrix & elemmat)
Add (element) submatrix to the matrix.

virtual MatrixInverse* Inverse() const
Returns a pointer to (approximation) of the matrix inverse.

CGMatrixInverse* CG(int printiter = 0, int maxnumiter = 1000, double rtol = 10e-12, double atol = 10e-24) const
Returns a pointer to CGMatrixInverse class. When the default arguments are used CG doesn't print current residual and number of iterations, maximum number of iterations is 1000 and the tolerance is 10e-12. *

PCGMatrixInverse* PCG(const MatrixInverse & b, int printiter = 0, int maxnumiter = 1000, double rtol = 10e-12, double atol = 10e-24) const
Returns a pointer to PCGMatrixInverse class. When the default arguments are used PCG doesn't print current residual and number of iterations, maximum number of iterations is 1000 and the tolerance is 10e-12. *

virtual void Finalize()
Finalizes the matrix initialization.

virtual void Print(ostream & out = cout, int width =4)
Prints matrix to stream out.

virtual ~Matrix()
Destroys matrix.


Direct child classes:
TriDiagonalMatrix
SymDenseMatrix
SparseMatrix
RectangularMatrix
BilinearForm
BandMatrix

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de