mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
add reshape() snippets
This commit is contained in:
parent
1e1d0c15b5
commit
9c832fad60
3
doc/snippets/MatrixBase_reshape.cpp
Normal file
3
doc/snippets/MatrixBase_reshape.cpp
Normal 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;
|
3
doc/snippets/MatrixBase_reshape_int_int.cpp
Normal file
3
doc/snippets/MatrixBase_reshape_int_int.cpp
Normal 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;
|
Loading…
Reference in New Issue
Block a user