Add a tutorial page on the Map class, and add a section to FunctionsTakingEigenTypes about multiple-argument functions and the pitfalls when using Map/Expression types.

(transplanted from 44b19b432c
)
This commit is contained in:
Tim Holy
2012-02-08 22:11:12 +01:00
parent 503cf43556
commit f54cc2284e
6 changed files with 146 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
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;