Sign in
eigen
/
mirror
/
3b5a1b4157ff9997065e4af78872ccf36b83f42b
/
.
/
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
;