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

9 lines
185 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).cwiseAbs();
cout << A;