mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-11-03 02:53:26 +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:
7
third_party/eigen/doc/snippets/HouseholderQR_householderQ.cpp
vendored
Normal file
7
third_party/eigen/doc/snippets/HouseholderQR_householderQ.cpp
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
MatrixXf A(MatrixXf::Random(5, 3)), thinQ(MatrixXf::Identity(5, 3)), Q;
|
||||
A.setRandom();
|
||||
HouseholderQR<MatrixXf> qr(A);
|
||||
Q = qr.householderQ();
|
||||
thinQ = qr.householderQ() * thinQ;
|
||||
std::cout << "The complete unitary matrix Q is:\n" << Q << "\n\n";
|
||||
std::cout << "The thin matrix Q is:\n" << thinQ << "\n\n";
|
||||
Reference in New Issue
Block a user