Class for solving a linear system using an iterative solver assuming the matrix can be symmetric positive-definite, general symmetric or asymmetric.
More...
#include <PetscSolver.hpp>
|
unsigned int | d_nz |
| Number of nonzero in diagonal per row. More...
|
|
unsigned int | o_nz |
| Number of nonzero in off-diagonal per row. More...
|
|
double | Tolerance |
| Residual tolerance error. More...
|
|
Eigen::VectorXd | x |
| Vector of unknowns. More...
|
|
Class for solving a linear system using an iterative solver assuming the matrix can be symmetric positive-definite, general symmetric or asymmetric.
- See also
- LinearSystem.hpp Algorithm.hpp
◆ PetscSolver()
PetscSolver::PetscSolver |
( |
unsigned int |
dnz, |
|
|
unsigned int |
onz, |
|
|
double |
tol = 1E-12 , |
|
|
unsigned int |
kspnum = 0 |
|
) |
| |
◆ ~PetscSolver()
PetscSolver::~PetscSolver |
( |
| ) |
|
◆ GetSolution()
const Eigen::VectorXd& PetscSolver::GetSolution |
( |
| ) |
|
|
virtual |
◆ SolveSystem()
bool PetscSolver::SolveSystem |
( |
Eigen::SparseMatrix< double > & |
A, |
|
|
Eigen::VectorXd & |
b |
|
) |
| |
|
virtual |
◆ d_nz
unsigned int PetscSolver::d_nz |
|
protected |
Number of nonzero in diagonal per row.
◆ o_nz
unsigned int PetscSolver::o_nz |
|
protected |
Number of nonzero in off-diagonal per row.
◆ Tolerance
double PetscSolver::Tolerance |
|
protected |
Residual tolerance error.
Eigen::VectorXd PetscSolver::x |
|
protected |