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