iMSTK
Interactive Medical Simulation Toolkit
|
Sparse direct solvers. Solves a sparse system of equations using a sparse LU decomposition. More...
#include <imstkDirectLinearSolver.h>
Public Member Functions | |
DirectLinearSolver ()=default | |
Default constructor/destructor. | |
DirectLinearSolver (const SparseMatrixd &matrix, const Vectord &b) | |
Constructor. | |
void | setSystem (std::shared_ptr< LinearSystemType > newSystem) override |
Sets the system. System of linear equations. | |
void | solve (Vectord &x) override |
Solve the system of equations. | |
void | solve (const Vectord &rhs, Vectord &x) |
Solve the system of equations for arbitrary right hand side vector. | |
![]() | |
LinearSolver () | |
Default constructor/destructor. | |
virtual void | setSystem (std::shared_ptr< LinearSystemType > newSystem) |
Set/get the system. Replaces/Returns the stored linear system of equations. | |
std::shared_ptr< LinearSystemType > | getSystem () const |
void | setTolerance (const double tolerance) |
Set solver tolerance. | |
double | getTolerance () const |
Get solver tolerance. | |
virtual void | print () const |
Print solver information. | |
virtual bool | isIterative () const=0 |
Returns true if the solver is iterative. | |
Type | getType () |
Return the type of the solver. | |
Additional Inherited Members | |
![]() | |
enum | Type |
using | MatrixType = SparseMatrixd |
using | LinearSystemType = LinearSystem< MatrixType > |
![]() | |
Type | m_type |
Type of the scene object. | |
double | m_tolerance |
default tolerance | |
std::shared_ptr< LinearSystemType > | m_linearSystem |
Linear system of equations. | |
Sparse direct solvers. Solves a sparse system of equations using a sparse LU decomposition.
Definition at line 78 of file imstkDirectLinearSolver.h.