libeigen/eigen!2509 Closes #2868 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
8 lines
251 B
C++
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;
|