Sign in
third-party-mirror
/
eigen
/
ba5b3a35527a05ec22b0e96dbb9860072771a6a8
/
.
/
doc
/
examples
/
DenseBase_template_int_middleRows.cpp
blob: ed5b2954c2b37a74d002ad1ca15d77fdaf3d5d5d [
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
;
}