Sign in
eigen
/
mirror
/
703539110b5c26f01ac37fe6114afdbb5c3c6c99
/
.
/
doc
/
snippets
/
MatrixBase_template_int.cpp
blob: 4041a2214c7fecc2d55b5aae1c8b169ab5ab65b7 [
file
]
RowVector5i
v
=
RowVector5i
::
Random
();
cout
<<
"Here is the vector v:"
<<
endl
<<
v
<<
endl
;
cout
<<
"Here is v.block<2>(1):"
<<
endl
<<
v
.
start
<
2
>()
<<
endl
;
v
.
block
<
2
>(
2
).
setZero
();
cout
<<
"Now the vector v is:"
<<
endl
<<
v
<<
endl
;