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:
15
third_party/eigen/doc/snippets/TopicStorageOrders_example.cpp
vendored
Normal file
15
third_party/eigen/doc/snippets/TopicStorageOrders_example.cpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
Matrix<int, 3, 4, ColMajor> Acolmajor;
|
||||
Acolmajor << 8, 2, 2, 9, 9, 1, 4, 4, 3, 5, 4, 5;
|
||||
cout << "The matrix A:" << endl;
|
||||
cout << Acolmajor << endl << endl;
|
||||
|
||||
cout << "In memory (column-major):" << endl;
|
||||
for (int i = 0; i < Acolmajor.size(); i++)
|
||||
cout << *(Acolmajor.data() + i) << " ";
|
||||
cout << endl << endl;
|
||||
|
||||
Matrix<int, 3, 4, RowMajor> Arowmajor = Acolmajor;
|
||||
cout << "In memory (row-major):" << endl;
|
||||
for (int i = 0; i < Arowmajor.size(); i++)
|
||||
cout << *(Arowmajor.data() + i) << " ";
|
||||
cout << endl;
|
Reference in New Issue
Block a user