iMSTK
Interactive Medical Simulation Toolkit
Public Member Functions | List of all members
imstk::DirectLinearSolver< SparseMatrixd > Class Template Reference

Sparse direct solvers. Solves a sparse system of equations using a sparse LU decomposition. More...

#include <imstkDirectLinearSolver.h>

Inheritance diagram for imstk::DirectLinearSolver< SparseMatrixd >:
Inheritance graph
[legend]
Collaboration diagram for imstk::DirectLinearSolver< SparseMatrixd >:
Collaboration graph
[legend]

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.
 
- Public Member Functions inherited from imstk::LinearSolver< SparseMatrixd >
 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< LinearSystemTypegetSystem () 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

- Public Types inherited from imstk::LinearSolver< SparseMatrixd >
enum  Type
 
using MatrixType = SparseMatrixd
 
using LinearSystemType = LinearSystem< MatrixType >
 
- Protected Attributes inherited from imstk::LinearSolver< SparseMatrixd >
Type m_type
 Type of the scene object.
 
double m_tolerance
 default tolerance
 
std::shared_ptr< LinearSystemTypem_linearSystem
 Linear system of equations.
 

Detailed Description

template<>
class imstk::DirectLinearSolver< SparseMatrixd >

Sparse direct solvers. Solves a sparse system of equations using a sparse LU decomposition.

Definition at line 78 of file imstkDirectLinearSolver.h.


The documentation for this class was generated from the following files: