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;


libicr
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:33:55