diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-06-27 23:45:37 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-06-27 23:45:37 +0200 |
commit | ca29620e25be0d4a5f6dccd9a4c5c4c649cee35c (patch) | |
tree | e235d76c339d88103ebd8e6c84f8155b074c8dcf | |
parent | f98c758f6173a9c9f5c8e30c1b400ed8ae51ea55 (diff) |
fix filename
-rw-r--r-- | doc/snippets/tut_matrix_assignment_resizing.cpp | 5 |
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; |