3 cout <<
"Here is a random symmetric 5x5 matrix, A:" << endl <<
A << endl << endl;
5 SelfAdjointEigenSolver<MatrixXd>
es(
A);
6 cout <<
"The eigenvalues of A are:" << endl <<
es.eigenvalues() << endl;
7 cout <<
"The matrix of eigenvectors, V, is:" << endl <<
es.eigenvectors() << endl << endl;
10 cout <<
"Consider the first eigenvalue, lambda = " <<
lambda << endl;
12 cout <<
"If v is the corresponding eigenvector, then lambda * v = " << endl <<
lambda *
v << endl;
13 cout <<
"... and A * v = " << endl <<
A *
v << endl << endl;
17 cout <<
"Finally, V * D * V^(-1) = " << endl <<
V *
D *
V.inverse() << endl;
Array< int, Dynamic, 1 > v
cout<< "The eigenvalues of A are:"<< endl<< ces.eigenvalues()<< endl;cout<< "The matrix of eigenvectors, V, is:"<< endl<< ces.eigenvectors()<< endl<< endl;complex< float > lambda
cout<< "Here is a random symmetric 5x5 matrix, A:"<< endl<< A<< endl<< endl;SelfAdjointEigenSolver< MatrixXd > es(A)
Matrix< double, Dynamic, 1 > VectorXd
DynamicĂ—1 vector of type double.
Matrix< double, Dynamic, Dynamic > MatrixXd
DynamicĂ—Dynamic matrix of type double.