![]() |
LinearSolveAndInverse aims at performing an efficient linear system resolution and calculating its inverse matrix at the same time. More...
#include <SurgSim/Math/LinearSolveAndInverse.h>
Public Member Functions | |
virtual | ~LinearSolveAndInverse () |
virtual void | setMatrix (const Matrix &matrix)=0 |
Set the linear solver matrix. More... | |
virtual Vector | solve (const Vector &b)=0 |
Solve the linear system (matrix.x=b) using the matrix provided by the latest setMatrix call. More... | |
virtual Matrix | getInverse ()=0 |
LinearSolveAndInverse aims at performing an efficient linear system resolution and calculating its inverse matrix at the same time.
This class is very useful in the OdeSolver resolution to improve performance.
|
inlinevirtual |
|
pure virtual |
Implemented in SurgSim::Math::LinearSolveAndInverseTriDiagonalBlockMatrix< BlockSize >, SurgSim::Math::LinearSolveAndInverseDiagonalMatrix, and SurgSim::Math::LinearSolveAndInverseDenseMatrix.
|
pure virtual |
Set the linear solver matrix.
matrix | the new matrix to solve/inverse for |
Implemented in SurgSim::Math::LinearSolveAndInverseSymmetricTriDiagonalBlockMatrix< BlockSize >, SurgSim::Math::LinearSolveAndInverseTriDiagonalBlockMatrix< BlockSize >, SurgSim::Math::LinearSolveAndInverseDiagonalMatrix, and SurgSim::Math::LinearSolveAndInverseDenseMatrix.
Solve the linear system (matrix.x=b) using the matrix provided by the latest setMatrix call.
b | The rhs vector |
Implemented in SurgSim::Math::LinearSolveAndInverseTriDiagonalBlockMatrix< BlockSize >, SurgSim::Math::LinearSolveAndInverseDiagonalMatrix, and SurgSim::Math::LinearSolveAndInverseDenseMatrix.