mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-07 01:22:59 +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/EigenSolver_pseudoEigenvectors.cpp
vendored
Normal file
9
third_party/eigen/doc/snippets/EigenSolver_pseudoEigenvectors.cpp
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
MatrixXd A = MatrixXd::Random(6, 6);
|
||||
cout << "Here is a random 6x6 matrix, A:" << endl << A << endl << endl;
|
||||
|
||||
EigenSolver<MatrixXd> es(A);
|
||||
MatrixXd D = es.pseudoEigenvalueMatrix();
|
||||
MatrixXd V = es.pseudoEigenvectors();
|
||||
cout << "The pseudo-eigenvalue matrix D is:" << endl << D << endl;
|
||||
cout << "The pseudo-eigenvector matrix V is:" << endl << V << endl;
|
||||
cout << "Finally, V * D * V^(-1) = " << endl << V * D * V.inverse() << endl;
|
Reference in New Issue
Block a user