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
scalara
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]

Implements SparseMatrix.

int MumpsMatrix::get_matrix_size (  )  const [virtual]

Implements Matrix.

void MumpsMatrix::zero (  )  [virtual]

Zero the matrix.

Implements Matrix.


Friends And Related Function Documentation

friend class MumpsSolver [friend]

Member Data Documentation

scalar* MumpsMatrix::a [protected]
int* MumpsMatrix::ai [protected]
int* MumpsMatrix::ap [protected]
int* MumpsMatrix::irn [protected]
int* MumpsMatrix::jcn [protected]
int MumpsMatrix::nnz [protected]

The documentation for this class was generated from the following files:
Generated on Fri Sep 3 09:22:20 2010 for Hermes3D Library: Real Version by  doxygen 1.6.3