Sign in
third-party-mirror
/
eigen
/
b67c47efeb80cdabc78a2bc413659b2f2c59ef1a
/
.
/
doc
/
examples
/
DenseBase_template_int_middleRows.cpp
blob: 4db5e706b067ac94324a14b82980d962746e8aa6 [
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(1..3,:) =\n"
<<
A
.
middleRows
<
3
>(
1
)
<<
std
::
endl
;
return
0
;
}