1*bf2c3715SXin Li MatrixXd A = MatrixXd::Random(6,6); 2*bf2c3715SXin Li cout << "Here is a random 6x6 matrix, A:" << endl << A << endl << endl; 3*bf2c3715SXin Li 4*bf2c3715SXin Li EigenSolver<MatrixXd> es(A); 5*bf2c3715SXin Li MatrixXd D = es.pseudoEigenvalueMatrix(); 6*bf2c3715SXin Li MatrixXd V = es.pseudoEigenvectors(); 7*bf2c3715SXin Li cout << "The pseudo-eigenvalue matrix D is:" << endl << D << endl; 8*bf2c3715SXin Li cout << "The pseudo-eigenvector matrix V is:" << endl << V << endl; 9*bf2c3715SXin Li cout << "Finally, V * D * V^(-1) = " << endl << V * D * V.inverse() << endl; 10