#include <solver_umfpack.h>
Inherits Solver.
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. | |
| UmfpackSolver::UmfpackSolver | ( | ) | [inline] |
| 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] |
| 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.
| 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 |
Implements Solver.
1.6.3