mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bug #1144: clarify the doc about aliasing in case of resizing and matrix product.
This commit is contained in:
5
doc/snippets/TopicAliasing_mult4.cpp
Normal file
5
doc/snippets/TopicAliasing_mult4.cpp
Normal file
@@ -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).cwiseAbs();
|
||||
cout << A;
|
||||
Reference in New Issue
Block a user