Sign in
eigen
/
mirror
/
25904802bc7a17f3436479a414234486ff4e084e
/
.
/
doc
/
snippets
/
MatrixBase_block_int_int.cpp
blob: 810ea5eb59d15fbdc394084f7e1b951055f09d14 [
file
] [
log
] [
blame
]
RowVector4i
v
=
RowVector4i
::
random
();
cout
<<
"Here is the vector v:"
<<
endl
<<
v
<<
endl
;
cout
<<
"Here is v.block(1, 2):"
<<
endl
<<
v
.
block
(
1
,
2
)
<<
endl
;
v
.
block
(
1
,
2
).
setZero
();
cout
<<
"Now the vector v is:"
<<
endl
<<
v
<<
endl
;