blob: 0062a99e8901248e4d37da97a48e3945124913ab [file] [log] [blame]
Brian Silverman72890c22015-09-19 14:37:37 -04001Tridiagonalization<MatrixXf> tri;
2MatrixXf X = MatrixXf::Random(4,4);
3MatrixXf A = X + X.transpose();
4tri.compute(A);
5cout << "The matrix T in the tridiagonal decomposition of A is: " << endl;
6cout << tri.matrixT() << endl;
7tri.compute(2*A); // re-use tri to compute eigenvalues of 2A
8cout << "The matrix T in the tridiagonal decomposition of 2A is: " << endl;
9cout << tri.matrixT() << endl;