mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix documentation of reshape to vectors.
This commit is contained in:
4
doc/snippets/MatrixBase_reshaped_to_vector.cpp
Normal file
4
doc/snippets/MatrixBase_reshaped_to_vector.cpp
Normal file
@@ -0,0 +1,4 @@
|
||||
Matrix4i m = Matrix4i::Random();
|
||||
cout << "Here is the matrix m:" << endl << m << endl;
|
||||
cout << "Here is m.reshaped().transpose():" << endl << m.reshaped().transpose() << endl;
|
||||
cout << "Here is m.reshaped<RowMajor>(): " << endl << m.reshaped<RowMajor>() << endl;
|
||||
Reference in New Issue
Block a user