Sign in
eigen
/
mirror
/
b8ecda5c66a40e37d1300ce49c35bf0964a3f2d0
/
.
/
doc
/
snippets
/
tut_matrix_assignment_resizing.cpp
blob: cf189983fb5fcb30bed3e1285377e35c9689ae69 [
file
] [
log
] [
blame
]
MatrixXf
a
(
2
,
2
);
std
::
cout
<<
"a is of size "
<<
a
.
rows
()
<<
"x"
<<
a
.
cols
()
<<
std
::
endl
;
MatrixXf
b
(
3
,
3
);
a
=
b
;
std
::
cout
<<
"a is now of size "
<<
a
.
rows
()
<<
"x"
<<
a
.
cols
()
<<
std
::
endl
;