SurgSim::Math::LinearSolveAndInverseDenseMatrix Class Reference

Derivation for dense matrix type. More...

`#include <SurgSim/Math/LinearSolveAndInverse.h>`

Inheritance diagram for SurgSim::Math::LinearSolveAndInverseDenseMatrix:

## Public Member Functions

void | setMatrix (const Matrix &matrix) override
| Set the linear solver matrix. More...
Vector | solve (const Vector &b) override
| Solve the linear system (matrix.x=b) using the matrix provided by the latest setMatrix call. More...
Matrix | getInverse () override
Public Member Functions inherited from SurgSim::Math::LinearSolveAndInverse
virtual | ~LinearSolveAndInverse ()

## Private Attributes

Eigen::PartialPivLU< typename Eigen::MatrixBase< Matrix >::PlainObject > | m_luDecomposition

## Detailed Description

Derivation for dense matrix type.

## Member Function Documentation

## getInverse()

Matrix SurgSim::Math::LinearSolveAndInverseDenseMatrix::getInverse | ( |  | ) |

override virtual

Returns
  The linear system's inverse matrix, i.e. the inverse of the matrix provided on the last setMatrix call

Implements SurgSim::Math::LinearSolveAndInverse.

## setMatrix()

void SurgSim::Math::LinearSolveAndInverseDenseMatrix::setMatrix | ( | const Matrix & | matrix | ) |

override virtual

Set the linear solver matrix.

Parameters

  matrix | the new matrix to solve/inverse for

Implements SurgSim::Math::LinearSolveAndInverse.

## solve()

Vector SurgSim::Math::LinearSolveAndInverseDenseMatrix::solve | ( | const Vector & | b | ) |

override virtual

Solve the linear system (matrix.x=b) using the matrix provided by the latest setMatrix call.

Parameters

  b | The rhs vector

Returns
  The solution vector

Implements SurgSim::Math::LinearSolveAndInverse.

## Member Data Documentation

## m_luDecomposition

Eigen::PartialPivLU<typename Eigen::MatrixBase<Matrix>::PlainObject> SurgSim::Math::LinearSolveAndInverseDenseMatrix::m_luDecomposition

private

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

- SurgSim/Math/LinearSolveAndInverse.h
- SurgSim/Math/LinearSolveAndInverse.cpp