SelfAdjointView_eigenvalues.cpp (184B)
1 MatrixXd ones = MatrixXd::Ones(3,3); 2 VectorXd eivals = ones.selfadjointView<Lower>().eigenvalues(); 3 cout << "The eigenvalues of the 3x3 matrix of ones are:" << endl << eivals << endl;
cart-elcSource code for CART-ELC | |
| git clone git://git.laack.co/cart-elc.git | |
| Log | Files | Refs | README | LICENSE |