|
opensurgsim
|
Derivation for sparse CG solver. More...
#include <LinearSparseSolveAndInverse.h>
Public Member Functions | |
| void | setTolerance (double tolerance) |
| Set the conjugate gradient convergence tolerance. More... | |
| double | getTolerance () |
| Get the conjugate gradient convergence tolerance. More... | |
| void | setMaxIterations (Eigen::Index iterations) |
| Set the maximum number of iterations for conjugate gradient. More... | |
| Eigen::Index | getMaxIterations () |
| Get the conjugate gradient maximum iterations. More... | |
| 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 Matrix | getInverse () const |
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. | |
Derivation for sparse CG solver.
| Eigen::Index SurgSim::Math::LinearSparseSolveAndInverseCG::getMaxIterations | ( | ) |
Get the conjugate gradient maximum iterations.
| double SurgSim::Math::LinearSparseSolveAndInverseCG::getTolerance | ( | ) |
Get the conjugate gradient convergence tolerance.
|
overridevirtual |
Set the linear solver matrix.
| matrix | the new matrix to solve/inverse for |
Implements SurgSim::Math::LinearSparseSolveAndInverse.
| void SurgSim::Math::LinearSparseSolveAndInverseCG::setMaxIterations | ( | Eigen::Index | iterations | ) |
Set the maximum number of iterations for conjugate gradient.
| iterations | the new maximum number of iterations |
| void SurgSim::Math::LinearSparseSolveAndInverseCG::setTolerance | ( | double | tolerance | ) |
Set the conjugate gradient convergence tolerance.
| tolerance | the new convergence tolerance |
|
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.
| b | The rhs matrix |
Implements SurgSim::Math::LinearSparseSolveAndInverse.
1.8.12