43 using namespace Eigen;
56 A(0,0) = 1.0;
A(0,1) = 0.0;
57 A(1,0) = 0.0;
A(1,1) = 3.0;
58 A(2,0) = 0.0;
A(2,1) = 2.0;
76 cout <<
"U = " << endl << U << endl;
77 cout <<
"D = " << endl << D << endl;
78 cout <<
"V = " << endl << V << endl;
85 B(0,0) = 1.0; B(0,1) = 0.0; B(0,2) = 0.0;
86 B(1,0) = 0.0; B(1,1) = 3.0; B(1,2) = 2.0;
104 cout <<
"\n\nSVD of the matrix B: \n";
106 cout <<
"U = " << endl << U << endl;
107 cout <<
"D = " << endl << D << endl;
108 cout <<
"V = " << endl << V << endl;
USING_NAMESPACE_ACADO int main()
#define USING_NAMESPACE_ACADO
iterative scaling algorithm to equilibrate rows and column norms in matrices
const SingularValuesType & singularValues() const
Two-sided Jacobi SVD decomposition of a rectangular matrix.
const MatrixUType & matrixU() const
const MatrixVType & matrixV() const