include
sot
core
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 --- */
14
#include <
dynamic-graph/linear-algebra.h
>
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__ */
dynamicgraph
dynamicgraph::SVD_t
Eigen::JacobiSVD< Matrix > SVD_t
Definition:
matrix-svd.hh:23
dynamicgraph::pseudoInverse
void pseudoInverse(Matrix &_inputMatrix, Matrix &_inverseMatrix, const double threshold=1e-6)
Definition:
matrix-svd.cpp:12
dynamicgraph::Matrix
Eigen::MatrixXd Matrix
dynamicgraph::dampedInverse
void dampedInverse(const SVD_t &svd, Matrix &_inverseMatrix, const double threshold=1e-6)
Definition:
matrix-svd.cpp:28
dynamicgraph::Vector
Eigen::VectorXd Vector
linear-algebra.h
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31