#include <matrix_old.h>
Inherited by SparseMatrix.
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 |
| virtual _Matrix::~_Matrix | ( | ) | [inline, virtual] |
| virtual void _Matrix::add | ( | int | m, | |
| int | n, | |||
| scalar ** | mat, | |||
| int * | rows, | |||
| int * | cols | |||
| ) | [pure virtual] |
update the stiffness matrix
| [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
| [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.
| [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.
1.6.3