Home | History | Annotate | Download | only in snippets
      1 MatrixXd ones = MatrixXd::Ones(3,3);
      2 EigenSolver<MatrixXd> es(ones);
      3 cout << "The first eigenvector of the 3x3 matrix of ones is:"
      4      << endl << es.eigenvectors().col(0) << endl;
      5