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,10 @@
MatrixXd X = MatrixXd::Random(5,5);
MatrixXd A = X + X.transpose();
cout << "Here is a random symmetric 5x5 matrix:" << endl << A << endl << endl;
VectorXd diag(5);
VectorXd subdiag(4);
Tridiagonalization<MatrixXd>::decomposeInPlace(A, diag, subdiag);
cout << "The orthogonal matrix Q is:" << endl << A << endl;
cout << "The diagonal of the tridiagonal matrix T is:" << endl << diag << endl;
cout << "The subdiagonal of the tridiagonal matrix T is:" << endl << subdiag << endl;