HessenbergDecomposition_matrixH.cpp
Go to the documentation of this file.
00001 Matrix4f A = MatrixXf::Random(4,4);
00002 cout << "Here is a random 4x4 matrix:" << endl << A << endl;
00003 HessenbergDecomposition<MatrixXf> hessOfA(A);
00004 MatrixXf H = hessOfA.matrixH();
00005 cout << "The Hessenberg matrix H is:" << endl << H << endl;
00006 MatrixXf Q = hessOfA.matrixQ();
00007 cout << "The orthogonal matrix Q is:" << endl << Q << endl;
00008 cout << "Q H Q^T is:" << endl << Q * H * Q.transpose() << endl;


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