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:
9
third_party/eigen/doc/snippets/Tridiagonalization_compute.cpp
vendored
Normal file
9
third_party/eigen/doc/snippets/Tridiagonalization_compute.cpp
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
Tridiagonalization<MatrixXf> tri;
|
||||
MatrixXf X = MatrixXf::Random(4, 4);
|
||||
MatrixXf A = X + X.transpose();
|
||||
tri.compute(A);
|
||||
cout << "The matrix T in the tridiagonal decomposition of A is: " << endl;
|
||||
cout << tri.matrixT() << endl;
|
||||
tri.compute(2 * A); // re-use tri to compute eigenvalues of 2A
|
||||
cout << "The matrix T in the tridiagonal decomposition of 2A is: " << endl;
|
||||
cout << tri.matrixT() << endl;
|
Reference in New Issue
Block a user