Sign in
eigen
/
mirror
/
2b7b7aac57130228c8057aac7c4782bd1278c923
/
.
/
doc
/
snippets
/
tut_matrix_assignment_resizing.cpp
blob: 9f5da4354592722aa29e8c57dbeac9a9aac6a32d [
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
;