Gitiles
Code Review
Sign In
realtimeroboticsgroup.org
/
RealtimeRoboticsGroup
/
test
/
189376f1eb10ecaca8a0b1ea00eba0e6f995da27
/
.
/
doc
/
snippets
/
Tutorial_ReshapeMat2Mat.cpp
blob: f84d6e76d0e8975221672d2cd0d0484af3e195ac [
file
] [
log
] [
blame
]
MatrixXf
M1
(
2
,
6
);
// Column-major storage
M1
<<
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
;
Map
<
MatrixXf
>
M2
(
M1
.
data
(),
6
,
2
);
cout
<<
"M2:"
<<
endl
<<
M2
<<
endl
;