2010-03-31 18:59:11 +08:00
|
|
|
MatrixXd ones = MatrixXd::Ones(3,3);
|
2010-06-01 01:17:47 +08:00
|
|
|
EigenSolver<MatrixXd> es(ones, false);
|
2010-03-31 18:59:11 +08:00
|
|
|
cout << "The eigenvalues of the 3x3 matrix of ones are:"
|
|
|
|
<< endl << es.eigenvalues() << endl;
|