_Matrix Class Reference

#include <matrix_old.h>

Inherited by SparseMatrix.

List of all members.

Public Member Functions

virtual ~_Matrix ()
virtual void alloc ()=0
 allocate the memory for stiffness matrix and right-hand side
virtual void free ()=0
 free the memory associated with stiffness matrix and right-hand side
virtual scalar get (int m, int n)=0
 Get the value from a position.
virtual int get_size ()=0
virtual void zero ()=0
 Zero the matrix.
virtual void add (int m, int n, scalar v)=0
 update the stiffness matrix
virtual void add (int m, int n, scalar **mat, int *rows, int *cols)=0
 update the stiffness matrix
virtual bool dump (FILE *file, const char *var_name, EMatrixDumpFormat=DF_MATLAB_SPARSE)=0
 dumping matrix and right-hand side
virtual int get_matrix_size () const =0

Constructor & Destructor Documentation

virtual _Matrix::~_Matrix (  )  [inline, virtual]

Member Function Documentation

virtual void _Matrix::add ( int  m,
int  n,
scalar **  mat,
int *  rows,
int *  cols 
) [pure virtual]

update the stiffness matrix

Parameters:
[in] m - number of rows of given block
[in] n - number of columns of given block
[in] matrix - block of values
[in] rows - array with row indexes
[in] cols - array with column indexes

Implemented in EpetraMatrix.

virtual void _Matrix::add ( int  m,
int  n,
scalar  v 
) [pure virtual]

update the stiffness matrix

Parameters:
[in] m - the row where to update
[in] n - the column where to update
[in] v - value

Implemented in EpetraMatrix.

virtual void _Matrix::alloc (  )  [pure virtual]

allocate the memory for stiffness matrix and right-hand side

Implemented in EpetraMatrix.

virtual bool _Matrix::dump ( FILE *  file,
const char *  var_name,
EMatrixDumpFormat  = DF_MATLAB_SPARSE 
) [pure virtual]

dumping matrix and right-hand side

Implemented in EpetraMatrix.

virtual void _Matrix::free (  )  [pure virtual]

free the memory associated with stiffness matrix and right-hand side

Implemented in EpetraMatrix.

virtual scalar _Matrix::get ( int  m,
int  n 
) [pure virtual]

Get the value from a position.

Returns:
the value form the specified position
Parameters:
[in] m - the number of row
[in] n - the number of column

Implemented in EpetraMatrix.

virtual int _Matrix::get_matrix_size (  )  const [pure virtual]

Implemented in EpetraMatrix.

virtual int _Matrix::get_size (  )  [pure virtual]

Implemented in SparseMatrix.

virtual void _Matrix::zero (  )  [pure virtual]

Zero the matrix.

Implemented in EpetraMatrix.


The documentation for this class was generated from the following file:
Generated on Sat Jun 5 15:17:43 2010 for Hermes2D Library: Real Version by  doxygen 1.6.3