diff options
Diffstat (limited to 'eigen/doc/snippets/tut_matrix_assignment_resizing.cpp')
-rw-r--r-- | eigen/doc/snippets/tut_matrix_assignment_resizing.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/eigen/doc/snippets/tut_matrix_assignment_resizing.cpp b/eigen/doc/snippets/tut_matrix_assignment_resizing.cpp new file mode 100644 index 0000000..cf18998 --- /dev/null +++ b/eigen/doc/snippets/tut_matrix_assignment_resizing.cpp @@ -0,0 +1,5 @@ +MatrixXf a(2,2); +std::cout << "a is of size " << a.rows() << "x" << a.cols() << std::endl; +MatrixXf b(3,3); +a = b; +std::cout << "a is now of size " << a.rows() << "x" << a.cols() << std::endl; |