Files
eigen/doc/snippets/TopicAliasing_mult5.cpp
T
2026-05-04 00:36:12 +00:00

9 lines
192 B
C++

// SPDX-FileCopyrightText: The Eigen Authors
// SPDX-License-Identifier: MPL-2.0
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;