39 using namespace Eigen;
50 A(0,0) = 1.0;
A(0,1) = 0.0;
A(0,2) = 0.0;
51 A(1,0) = 0.0;
A(1,1) = 3.0;
A(1,2) = 2.0;
52 A(2,0) = 0.0;
A(2,1) = 2.0;
A(2,2) = 3.0;
61 cout <<
"A = " << A << endl;
62 cout <<
"Eigenvalues: " << endl << es.
eigenvalues() << endl << endl;
63 cout <<
"Eigenvectors: " << endl << es.
eigenvectors() << endl;
EigenvectorsType eigenvectors() const
Returns the eigenvectors of given matrix.
#define USING_NAMESPACE_ACADO
iterative scaling algorithm to equilibrate rows and column norms in matrices
Computes eigenvalues and eigenvectors of general matrices.
USING_NAMESPACE_ACADO int main()
const EigenvalueType & eigenvalues() const
Returns the eigenvalues of given matrix.