From 41c3a2ffc105812e81f8bef81e09e7099d36f9bd Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 25 Sep 2018 16:35:44 +0200 Subject: Fix documentation of reshape to vectors. --- doc/snippets/MatrixBase_reshaped_all.cpp | 4 ---- doc/snippets/MatrixBase_reshaped_to_vector.cpp | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 doc/snippets/MatrixBase_reshaped_all.cpp create mode 100644 doc/snippets/MatrixBase_reshaped_to_vector.cpp (limited to 'doc/snippets') 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(): " << endl << m.reshaped() << endl; -- cgit v1.2.3