diff options
author | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2010-07-31 21:37:29 +0100 |
---|---|---|
committer | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2010-07-31 21:37:29 +0100 |
commit | a9fe75efc484c1db35cc7e0132959863f5bdca03 (patch) | |
tree | 7275995a1c7ba1e54f593a9465711707a80dbe7c /doc/snippets | |
parent | 7cefa75901117fb562d58129eab8ba705566f197 (diff) |
Documentation: Start special topic page on aliasing.
Diffstat (limited to 'doc/snippets')
-rw-r--r-- | doc/snippets/TopicAliasing_block.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/snippets/TopicAliasing_block.cpp b/doc/snippets/TopicAliasing_block.cpp new file mode 100644 index 000000000..9e897d01c --- /dev/null +++ b/doc/snippets/TopicAliasing_block.cpp @@ -0,0 +1,5 @@ +Matrix3i mat; +mat << 1, 2, 3, 4, 5, 6, 7, 8, 9; +cout << "Here is the matrix mat:\n" << mat << endl; +mat.bottomRightCorner(2,2) = mat.topLeftCorner(2,2); +cout << "After the assignment, mat = \n" << mat << endl; |