UmfpackSolver Class Reference

#include <solver_umfpack.h>

Inherits Solver.

List of all members.

Public Member Functions

 UmfpackSolver ()

Protected Member Functions

virtual bool is_row_oriented ()
 Must return true if the solvers expects compressed row (CSR) format. Otherwise LinSystem assumes the compressed column (CSC) format.
virtual bool handles_symmetry ()
 Must return true if the solver is capable of solving structurally symmetric matrices, ie., when only the upper half of the matrix is stored in the CSR or CSC arrays.
virtual bool solve (void *, int, int *, int *, scalar *, bool, scalar *, scalar *)
 Called by LinSystem when the user requests the solution of the linear system. Direct solvers will want to use the matrix factorization stored in "ctx". Iterative solvers will probably solve the system from scratch in this call, but can expect "vec" to contain the initial guess for the solution vector.

Constructor & Destructor Documentation

UmfpackSolver::UmfpackSolver (  )  [inline]

Member Function Documentation

virtual bool UmfpackSolver::handles_symmetry (  )  [inline, protected, virtual]

Must return true if the solver is capable of solving structurally symmetric matrices, ie., when only the upper half of the matrix is stored in the CSR or CSC arrays.

Implements Solver.

virtual bool UmfpackSolver::is_row_oriented (  )  [inline, protected, virtual]

Must return true if the solvers expects compressed row (CSR) format. Otherwise LinSystem assumes the compressed column (CSC) format.

Implements Solver.

virtual bool UmfpackSolver::solve ( void *  ctx,
int  n,
int *  Ap,
int *  Ai,
scalar Ax,
bool  sym,
scalar RHS,
scalar vec 
) [inline, protected, virtual]

Called by LinSystem when the user requests the solution of the linear system. Direct solvers will want to use the matrix factorization stored in "ctx". Iterative solvers will probably solve the system from scratch in this call, but can expect "vec" to contain the initial guess for the solution vector.

Parameters:
ctx execution context
n [in] number of rows and columns of the matrix
Ap,Ai,Ax [in] the matrix in CSR or CSC format
sym [in] true if the matrix is symmetric and only the upper half is stored.
RHS [in] right hand side vector
vec [in/out] solution vector
Returns:
true on success, false otherwise.

Implements Solver.


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