commit | c10021c00a6cb6033bc479a46aef058c48836efd | [log] [tgz] |
---|---|---|
author | Gael Guennebaud <g.gael@free.fr> | Mon Jan 25 15:50:55 2016 +0100 |
committer | Gael Guennebaud <g.gael@free.fr> | Mon Jan 25 15:50:55 2016 +0100 |
tree | d6da7e56dfc2ea6d8c7a7cf4cdbe4acb954fc804 | |
parent | b114e6fd3b61c7ef93f6b94e194d316f0ab19036 [diff] [blame] |
bug #1144: clarify the doc about aliasing in case of resizing and matrix product.
diff --git a/doc/snippets/TopicAliasing_mult5.cpp b/doc/snippets/TopicAliasing_mult5.cpp new file mode 100644 index 0000000..1a36def --- /dev/null +++ b/doc/snippets/TopicAliasing_mult5.cpp
@@ -0,0 +1,5 @@ +MatrixXf A(2,2), B(3,2); +B << 2, 0, 0, 3, 1, 1; +A << 2, 0, 0, -2; +A = (B * A).eval().cwiseAbs(); +cout << A;