Tridiagonalization_decomposeInPlace.cpp
Go to the documentation of this file.
00001 MatrixXd X = MatrixXd::Random(5,5);
00002 MatrixXd A = X + X.transpose();
00003 cout << "Here is a random symmetric 5x5 matrix:" << endl << A << endl << endl;
00004 
00005 VectorXd diag(5);
00006 VectorXd subdiag(4);
00007 internal::tridiagonalization_inplace(A, diag, subdiag, true);
00008 cout << "The orthogonal matrix Q is:" << endl << A << endl;
00009 cout << "The diagonal of the tridiagonal matrix T is:" << endl << diag << endl;
00010 cout << "The subdiagonal of the tridiagonal matrix T is:" << endl << subdiag << endl;


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:33:27