diff options
Diffstat (limited to 'doc/snippets/MatrixBase_reshaped_all.cpp')
-rw-r--r-- | doc/snippets/MatrixBase_reshaped_all.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/snippets/MatrixBase_reshaped_all.cpp b/doc/snippets/MatrixBase_reshaped_all.cpp new file mode 100644 index 000000000..501f6276f --- /dev/null +++ b/doc/snippets/MatrixBase_reshaped_all.cpp @@ -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; |