2023-12-06 05:22:55 +08:00
|
|
|
MatrixXd ones = MatrixXd::Ones(3, 3);
|
2010-05-05 00:11:32 +08:00
|
|
|
SelfAdjointEigenSolver<MatrixXd> es(ones);
|
2023-12-06 05:22:55 +08:00
|
|
|
cout << "The eigenvalues of the 3x3 matrix of ones are:" << endl << es.eigenvalues() << endl;
|