xref: /aosp_15_r20/external/eigen/doc/snippets/TopicAliasing_mult5.cpp (revision bf2c37156dfe67e5dfebd6d394bad8b2ab5804d4)
1  MatrixXf A(2,2), B(3,2);
2  B << 2, 0,  0, 3, 1, 1;
3  A << 2, 0, 0, -2;
4  A = (B * A).eval().cwiseAbs();
5  cout << A;
6