PardisoMatrix Class Reference

#include <pardiso.h>

Inherits SparseMatrix.

List of all members.

Public Member Functions

 PardisoMatrix ()
virtual ~PardisoMatrix ()
virtual void pre_add_ij (int row, int col)
 add indices of nonzero matrix element
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

Static Protected Member Functions

static void insert_value (int *Ai, scalar *Ax, int Alen, int idx, scalar value)

Protected Attributes

int * Ap
int * Ai
scalarAx

Friends

class PardisoLinearSolver

Constructor & Destructor Documentation

PardisoMatrix::PardisoMatrix (  ) 
PardisoMatrix::~PardisoMatrix (  )  [virtual]

Member Function Documentation

void PardisoMatrix::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 PardisoMatrix::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 PardisoMatrix::alloc (  )  [virtual]

allocate the memory for stiffness matrix and right-hand side

Implements Matrix.

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

dumping matrix and right-hand side

Implements Matrix.

void PardisoMatrix::free (  )  [virtual]

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

Implements Matrix.

scalar PardisoMatrix::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 PardisoMatrix::get_fill_in (  )  const [virtual]

Implements SparseMatrix.

int PardisoMatrix::get_matrix_size (  )  const [virtual]

Implements Matrix.

void PardisoMatrix::insert_value ( int *  Ai,
scalar Ax,
int  Alen,
int  idx,
scalar  value 
) [static, protected]
void PardisoMatrix::pre_add_ij ( int  row,
int  col 
) [virtual]

add indices of nonzero matrix element

Parameters:
[in] row - row index
[in] col - column index

Reimplemented from SparseMatrix.

void PardisoMatrix::zero (  )  [virtual]

Zero the matrix.

Implements Matrix.


Friends And Related Function Documentation

friend class PardisoLinearSolver [friend]

Member Data Documentation

int* PardisoMatrix::Ai [protected]
int* PardisoMatrix::Ap [protected]
scalar* PardisoMatrix::Ax [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