opensurgsim
Public Member Functions | List of all members
SurgSim::Math::LinearSparseSolveAndInverseLU Class Reference

Derivation for sparse LU solver. More...

#include <LinearSparseSolveAndInverse.h>

Inheritance diagram for SurgSim::Math::LinearSparseSolveAndInverseLU:
SurgSim::Math::LinearSparseSolveAndInverse

Public Member Functions

void setMatrix (const SparseMatrix &matrix) override
 Set the linear solver matrix. More...
 
Matrix getInverse () const override
 
Matrix solve (const Matrix &b) const override
 Solve the linear system (matrix.x=b) using the matrix provided by the latest setMatrix call for all columns of the rhs matrix b. More...
 

Additional Inherited Members

- Protected Attributes inherited from SurgSim::Math::LinearSparseSolveAndInverse
SparseMatrix m_matrix
 A copy of the system matrix for use when an inverse is necessary.
 

Detailed Description

Derivation for sparse LU solver.

Member Function Documentation

§ getInverse()

Matrix SurgSim::Math::LinearSparseSolveAndInverseLU::getInverse ( ) const
overridevirtual
Returns
The linear system's inverse matrix, i.e. the inverse of the matrix provided on the last setMatrix call

Reimplemented from SurgSim::Math::LinearSparseSolveAndInverse.

§ setMatrix()

void SurgSim::Math::LinearSparseSolveAndInverseLU::setMatrix ( const SparseMatrix matrix)
overridevirtual

Set the linear solver matrix.

Parameters
matrixthe new matrix to solve/inverse for

Implements SurgSim::Math::LinearSparseSolveAndInverse.

§ solve()

Matrix SurgSim::Math::LinearSparseSolveAndInverseLU::solve ( const Matrix b) const
overridevirtual

Solve the linear system (matrix.x=b) using the matrix provided by the latest setMatrix call for all columns of the rhs matrix b.

Parameters
bThe rhs matrix
Returns
The solution matrix

Implements SurgSim::Math::LinearSparseSolveAndInverse.


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