TopicStorageOrders_example.cpp
Go to the documentation of this file.
1 Matrix<int, 3, 4, ColMajor> Acolmajor;
2 Acolmajor << 8, 2, 2, 9,
3  9, 1, 4, 4,
4  3, 5, 4, 5;
5 cout << "The matrix A:" << endl;
6 cout << Acolmajor << endl << endl;
7 
8 cout << "In memory (column-major):" << endl;
9 for (int i = 0; i < Acolmajor.size(); i++)
10  cout << *(Acolmajor.data() + i) << " ";
11 cout << endl << endl;
12 
13 Matrix<int, 3, 4, RowMajor> Arowmajor = Acolmajor;
14 cout << "In memory (row-major):" << endl;
15 for (int i = 0; i < Arowmajor.size(); i++)
16  cout << *(Arowmajor.data() + i) << " ";
17 cout << endl;
18 
Eigen
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
Acolmajor
Matrix< int, 3, 4, ColMajor > Acolmajor
Definition: TopicStorageOrders_example.cpp:1
Arowmajor
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
Definition: TopicStorageOrders_example.cpp:13
i
int i
Definition: BiCGSTAB_step_by_step.cpp:9


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:14