Sign in
third-party-mirror
/
eigen
/
eae6db0ca08e15a56faa194349561649dde541dd
/
.
/
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
;