mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 17:17:14 +08:00
Move eigen to third party (#282)
* remove useless statement * Add eigen to third_party dir * remove reducdant lines
This commit is contained in:
8
third_party/eigen/doc/snippets/HessenbergDecomposition_matrixH.cpp
vendored
Normal file
8
third_party/eigen/doc/snippets/HessenbergDecomposition_matrixH.cpp
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
Matrix4f A = MatrixXf::Random(4, 4);
|
||||
cout << "Here is a random 4x4 matrix:" << endl << A << endl;
|
||||
HessenbergDecomposition<MatrixXf> hessOfA(A);
|
||||
MatrixXf H = hessOfA.matrixH();
|
||||
cout << "The Hessenberg matrix H is:" << endl << H << endl;
|
||||
MatrixXf Q = hessOfA.matrixQ();
|
||||
cout << "The orthogonal matrix Q is:" << endl << Q << endl;
|
||||
cout << "Q H Q^T is:" << endl << Q * H * Q.transpose() << endl;
|
Reference in New Issue
Block a user