Sign in
third-party-mirror
/
eigen
/
941ca8d83f776b9a07153d3abef2877907aa0555
/
.
/
doc
/
snippets
/
Matrix_resize_int.cpp
blob: 7f34df771102b5a78cce69c3001681af3c575f0d [
file
] [
log
] [
blame
]
VectorXd
v
(
10
);
v
.
resize
(
3
);
RowVector3d
w
;
w
.
resize
(
3
);
// this is legal, but has no effect
cout
<<
"v: "
<<
v
.
rows
()
<<
" rows, "
<<
v
.
cols
()
<<
" cols"
<<
endl
;
cout
<<
"w: "
<<
w
.
rows
()
<<
" rows, "
<<
w
.
cols
()
<<
" cols"
<<
endl
;