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

7 lines
242 B
C++

// SPDX-FileCopyrightText: The Eigen Authors
// SPDX-License-Identifier: MPL-2.0
Matrix4i m = Matrix4i::Random();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is m.reshaped(2, 8):" << endl << m.reshaped(2, 8) << endl;