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

8 lines
251 B
C++

// SPDX-FileCopyrightText: The Eigen Authors
// SPDX-License-Identifier: MPL-2.0
MatrixXf mat = MatrixXf::Random(2, 3);
std::cout << mat << std::endl << std::endl;
mat = (MatrixXf(2, 2) << 0, 1, 1, 0).finished() * mat;
std::cout << mat << std::endl;