aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/tut_matrix_assignment_resizing.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-06-27 23:45:37 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-06-27 23:45:37 +0200
commitca29620e25be0d4a5f6dccd9a4c5c4c649cee35c (patch)
treee235d76c339d88103ebd8e6c84f8155b074c8dcf /doc/snippets/tut_matrix_assignment_resizing.cpp
parentf98c758f6173a9c9f5c8e30c1b400ed8ae51ea55 (diff)
fix filename
Diffstat (limited to 'doc/snippets/tut_matrix_assignment_resizing.cpp')
-rw-r--r--doc/snippets/tut_matrix_assignment_resizing.cpp5
1 files changed, 5 insertions, 0 deletions
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;