Sign in
eigen
/
mirror
/
0068d3ccf62c3e2960e3f9eb4a31562c0f5025d7
/
.
/
doc
/
snippets
/
Matrix_resize_int.cpp
blob: 044c78989fd89a4ba20d5b786815ac3e061054b7 [
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
;