MumpsMatrix Class Reference
#include <mumps.h>
Inherits SparseMatrix.
List of all members.
Public Member Functions |
| | MumpsMatrix () |
| virtual | ~MumpsMatrix () |
| virtual void | alloc () |
| | allocate the memory for stiffness matrix and right-hand side
|
| virtual void | free () |
| | free the memory associated with stiffness matrix and right-hand side
|
| virtual scalar | get (int m, int n) |
| | Get the value from a position.
|
| virtual void | zero () |
| | Zero the matrix.
|
| virtual void | add (int m, int n, scalar v) |
| | update the stiffness matrix
|
| virtual void | add (int m, int n, scalar **mat, int *rows, int *cols) |
| | update the stiffness matrix
|
| virtual bool | dump (FILE *file, const char *var_name, EMatrixDumpFormat fmt=DF_MATLAB_SPARSE) |
| | dumping matrix and right-hand side
|
| virtual int | get_matrix_size () const |
| virtual double | get_fill_in () const |
Protected Attributes |
| int | nnz |
| int * | irn |
| int * | jcn |
| scalar * | a |
| int * | ap |
| int * | ai |
Friends |
| class | MumpsSolver |
Constructor & Destructor Documentation
| MumpsMatrix::MumpsMatrix |
( |
|
) |
|
| MumpsMatrix::~MumpsMatrix |
( |
|
) |
[virtual] |
Member Function Documentation
| void MumpsMatrix::add |
( |
int |
m, |
|
|
int |
n, |
|
|
scalar ** |
mat, |
|
|
int * |
rows, |
|
|
int * |
cols | |
|
) |
| | [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 |
Implements Matrix.
| void MumpsMatrix::add |
( |
int |
m, |
|
|
int |
n, |
|
|
scalar |
v | |
|
) |
| | [virtual] |
update the stiffness matrix
- Parameters:
-
| [in] | m | - the row where to update |
| [in] | n | - the column where to update |
| [in] | v | - value |
Implements Matrix.
| void MumpsMatrix::alloc |
( |
|
) |
[virtual] |
allocate the memory for stiffness matrix and right-hand side
Implements Matrix.
| bool MumpsMatrix::dump |
( |
FILE * |
file, |
|
|
const char * |
var_name, |
|
|
EMatrixDumpFormat |
fmt = DF_MATLAB_SPARSE | |
|
) |
| | [virtual] |
dumping matrix and right-hand side
Implements Matrix.
| void MumpsMatrix::free |
( |
|
) |
[virtual] |
free the memory associated with stiffness matrix and right-hand side
Implements Matrix.
| scalar MumpsMatrix::get |
( |
int |
m, |
|
|
int |
n | |
|
) |
| | [virtual] |
Get the value from a position.
- Returns:
- the value from the specified position
- Parameters:
-
| [in] | m | - the number of row |
| [in] | n | - the number of column |
Implements Matrix.
| double MumpsMatrix::get_fill_in |
( |
|
) |
const [virtual] |
| int MumpsMatrix::get_matrix_size |
( |
|
) |
const [virtual] |
| void MumpsMatrix::zero |
( |
|
) |
[virtual] |
Zero the matrix.
Implements Matrix.
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following files: