diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-06-26 14:00:00 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-06-26 14:00:00 -0400 |
commit | e078bb263759ceaa86ee0b80b8794a88f6ee3a32 (patch) | |
tree | acd603eb4ce132fc0f5805bdfbc5896103d67421 /doc/snippets | |
parent | 1c783e252fc7bbe44fb6fb793ebea2f7ad21a083 (diff) |
big improvements to tutorial, especially page 2 (matrix arithmetic).
add placeholders for some 'special topic' pages.
Diffstat (limited to 'doc/snippets')
-rw-r--r-- | doc/snippets/tut_matrix_assignmnet_resizing.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/snippets/tut_matrix_assignmnet_resizing.cpp b/doc/snippets/tut_matrix_assignmnet_resizing.cpp new file mode 100644 index 000000000..96b3c88d3 --- /dev/null +++ b/doc/snippets/tut_matrix_assignmnet_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; |