Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
eigen
/
c82ae8e0efb0b7faea450225808e7ad4c16a21a8
/
.
/
doc
/
snippets
/
Tutorial_reshaped_vs_resize_1.cpp
blob: e520e8e6b3871b3b6b900a6e772ea2e41a4d983f [
file
] [
log
] [
blame
]
MatrixXi
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
;
m
.
resize
(
2
,
8
);
cout
<<
"Here is the matrix m after m.resize(2,8):"
<<
endl
<<
m
<<
endl
;