mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Improve documentation of reshaped
This commit is contained in:
5
doc/snippets/MatrixBase_reshaped_all.cpp
Normal file
5
doc/snippets/MatrixBase_reshaped_all.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
using Eigen::placeholders::all;
|
||||
Matrix4i m = Matrix4i::Random();
|
||||
cout << "Here is the matrix m:" << endl << m << endl;
|
||||
cout << "Here is m(all).transpose():" << endl << m(all).transpose() << endl;
|
||||
cout << "Here is m.reshaped(fix<1>,AutoSize):" << endl << m.reshaped(fix<1>,AutoSize) << endl;
|
||||
Reference in New Issue
Block a user