add reshape() snippets

This commit is contained in:
yoco 2014-01-18 04:53:46 +08:00
parent 1e1d0c15b5
commit 9c832fad60
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,3 @@
Matrix4i m = Matrix4i::Random();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is m.reshape<2,8>():" << endl << m.reshape<2,8>() << endl;

View File

@ -0,0 +1,3 @@
Matrix4i m = Matrix4i::Random();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is m.reshape(2, 8):" << endl << m.reshape(2, 8) << endl;