Fix typo in SelfAdjointEigenSolver_eigenvectors.cpp

This commit is contained in:
Rasmus Munk Larsen 2021-06-21 19:06:04 +00:00
parent e9ab4278b7
commit c8a2b4d20a

View File

@ -1,4 +1,4 @@
MatrixXd ones = MatrixXd::Ones(3,3);
SelfAdjointEigenSolver<MatrixXd> es(ones);
cout << "The first eigenvector of the 3x3 matrix of ones is:"
<< endl << es.eigenvectors().col(1) << endl;
<< endl << es.eigenvectors().col(0) << endl;