2 cout <<
"Here is a random 4x4 matrix:" << endl <<
A << endl;
3 HessenbergDecomposition<MatrixXf>
hessOfA(
A);
5 cout <<
"The Hessenberg matrix H is:" << endl <<
H << endl;
7 cout <<
"The orthogonal matrix Q is:" << endl <<
Q << endl;
8 cout <<
"Q H Q^T is:" << endl <<
Q *
H *
Q.transpose() << endl;
cout<< "Here is a random 4x4 matrix:"<< endl<< A<< endl;HessenbergDecomposition< MatrixXf > hessOfA(A)
Matrix< float, 4, 4 > Matrix4f
4×4 matrix of type float.
Matrix< float, Dynamic, Dynamic > MatrixXf
Dynamic×Dynamic matrix of type float.