Go to the source code of this file.
|
MatrixXd | A = MatrixXd::Random(6,6) |
|
MatrixXcd | D = es.eigenvalues().asDiagonal() |
|
cout<< "The eigenvalues of A are:"<< endl<< es.eigenvalues()<< endl;cout<< "The matrix of eigenvectors, V, is:"<< endl<< es.eigenvectors()<< endl<< endl;complex< double > | lambda = es.eigenvalues()[0] |
|
MatrixXcd | V = es.eigenvectors() |
|
◆ cout<< "Consider the first eigenvalue, lambda = "<< lambda<< endl;VectorXcd v=es.eigenvectors().col(0);cout<< "If v is the corresponding eigenvector, then lambda * v = "<< endl<< lambda *v<< endl;cout<< "... and A * v = "<< endl<< A.cast< complex< double > >()
cout<< "Consider the first eigenvalue, lambda = "<< lambda<< endl;VectorXcd v=es.eigenvectors().col(0);cout<< "If v is the corresponding eigenvector, then lambda * v = "<< endl<< lambda *v<< endl;cout<< "... and A * v = "<< endl<< A.cast< complex< double > > |
( |
| ) |
|
◆ es()
cout<< "Here is a random 6x6 matrix, A:" << endl << A << endl << endl;EigenSolver<MatrixXd> es |
( |
A |
| ) |
|
MatrixXd A = MatrixXd::Random(6,6) |
MatrixXcd D = es.eigenvalues().asDiagonal() |
◆ lambda
cout<< "The eigenvalues of A are:" << endl << es.eigenvalues() << endl;cout << "The matrix of eigenvectors, V, is:" << endl << es.eigenvectors() << endl << endl;complex<double> lambda = es.eigenvalues()[0] |
MatrixXcd V = es.eigenvectors() |