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

Derivation for sparse LU solver. More...

#include <SurgSim/Math/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 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...
 
- Public Member Functions inherited from SurgSim::Math::LinearSparseSolveAndInverse
virtual ~LinearSparseSolveAndInverse ()
 
virtual Matrix getInverse () const
 

Private Attributes

Eigen::SparseLU< SparseMatrixm_solver
 

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. More...
 

Detailed Description

Derivation for sparse LU solver.

Member Function Documentation

§ 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.

Member Data Documentation

§ m_solver

Eigen::SparseLU<SparseMatrix> SurgSim::Math::LinearSparseSolveAndInverseLU::m_solver
private

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