Document Tridiagonalization class, remove unused types.

This commit is contained in:
Jitse Niesen
2010-05-01 17:52:16 +01:00
parent d9c1224133
commit afed0ef90d
7 changed files with 263 additions and 44 deletions

View File

@@ -0,0 +1,9 @@
Tridiagonalization<MatrixXf> tri;
MatrixXf X = MatrixXf::Random(4,4);
MatrixXf A = X + X.transpose();
tri.compute(A);
cout << "The matrix T in the tridiagonal decomposition of A is: " << endl;
cout << tri.matrixT() << endl;
tri.compute(2*A); // re-use tri to compute eigenvalues of 2A
cout << "The matrix T in the tridiagonal decomposition of 2A is: " << endl;
cout << tri.matrixT() << endl;