You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
299 B
7 lines
299 B
int array[8];
|
|
for(int i = 0; i < 8; ++i) array[i] = i;
|
|
cout << "Column-major:\n" << Map<Matrix<int,2,4> >(array) << endl;
|
|
cout << "Row-major:\n" << Map<Matrix<int,2,4,RowMajor> >(array) << endl;
|
|
cout << "Row-major using stride:\n" <<
|
|
Map<Matrix<int,2,4>, Unaligned, Stride<1,4> >(array) << endl;
|
|
|
|
|