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