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