matrix-svd.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2010,
3  * François Bleibel,
4  * Olivier Stasse,
5  *
6  * CNRS/AIST
7  *
8  */
9 
10 #ifndef __SOT_MATRIX_SVD_H__
11 #define __SOT_MATRIX_SVD_H__
12 
13 /* --- Matrix --- */
15 
16 #include <Eigen/SVD>
17 
18 /* --------------------------------------------------------------------- */
19 /* --------------------------------------------------------------------- */
20 /* --------------------------------------------------------------------- */
21 namespace dynamicgraph {
22 
23 typedef Eigen::JacobiSVD<Matrix> SVD_t;
24 
25 void pseudoInverse(Matrix &_inputMatrix, Matrix &_inverseMatrix,
26  const double threshold = 1e-6);
27 
28 void dampedInverse(const SVD_t &svd, Matrix &_inverseMatrix,
29  const double threshold = 1e-6);
30 
31 void dampedInverse(const Matrix &_inputMatrix, Matrix &_inverseMatrix,
32  Matrix &Uref, Vector &Sref, Matrix &Vref,
33  const double threshold = 1e-6);
34 
35 void dampedInverse(const Matrix &_inputMatrix, Matrix &_inverseMatrix,
36  const double threshold = 1e-6);
37 
38 } // namespace dynamicgraph
39 
40 #endif /* #ifndef __SOT_MATRIX_SVD_H__ */
Eigen::VectorXd Vector
Eigen::JacobiSVD< Matrix > SVD_t
Definition: matrix-svd.hh:23
void pseudoInverse(Matrix &_inputMatrix, Matrix &_inverseMatrix, const double threshold=1e-6)
Definition: matrix-svd.cpp:12
Eigen::MatrixXd Matrix
void dampedInverse(const SVD_t &svd, Matrix &_inverseMatrix, const double threshold=1e-6)
Definition: matrix-svd.cpp:28


sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Wed Jun 21 2023 02:51:26