Sign in
third-party-mirror
/
eigen
/
e2dcd159fbe07c00b6c8e50616eedde1a6325eaa
/
.
/
doc
/
examples
/
DenseBase_middleRows_int.cpp
blob: 6a25500883e6fc1305da391d82386944ce12e717 [
file
] [
log
] [
blame
]
#include
<
Eigen
/
Core
>
#include
<iostream>
int
main
()
{
int
const
N
=
5
;
Eigen
::
MatrixXi
A
(
N
,
N
);
A
.
setRandom
();
std
::
cout
<<
"A =\n"
<<
A
<<
'\n'
<<
std
::
endl
;
std
::
cout
<<
"A(2..3,:) =\n"
<<
A
.
middleRows
(
2
,
2
)
<<
std
::
endl
;
return
0
;
}