blob: 737afecb8078fc998c5b3a16146e5e49d927b23b [file] [log] [blame]
Austin Schuh189376f2018-12-20 22:11:15 +11001MatrixXf M1(2,6); // Column-major storage
2M1 << 1, 2, 3, 4, 5, 6,
3 7, 8, 9, 10, 11, 12;
4
5Map<MatrixXf> M2(M1.data(), 6,2);
Austin Schuhc55b0172022-02-20 17:52:35 -08006cout << "M2:" << endl << M2 << endl;