From ca29620e25be0d4a5f6dccd9a4c5c4c649cee35c Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sun, 27 Jun 2010 23:45:37 +0200 Subject: [PATCH] fix filename --- doc/snippets/tut_matrix_assignment_resizing.cpp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 doc/snippets/tut_matrix_assignment_resizing.cpp diff --git a/doc/snippets/tut_matrix_assignment_resizing.cpp b/doc/snippets/tut_matrix_assignment_resizing.cpp new file mode 100644 index 000000000..96b3c88d3 --- /dev/null +++ b/doc/snippets/tut_matrix_assignment_resizing.cpp @@ -0,0 +1,5 @@ +MatrixXf a(2,2); +cout << "a is of size " << a.rows() << "x" << a.cols() << std::endl; +MatrixXf b(3,3); +a = b; +cout << "a is now of size " << a.rows() << "x" << a.cols() << std::endl;