Sign in
third-party-mirror
/
eigen
/
2571273647cdf6673639ebe9b3aa3237c1e7a822
/
.
/
doc
/
examples
/
DenseBase_middleCols_int.cpp
blob: cb7dace26c2ffd5c0474c0ae70308db788c65391 [
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
.
middleCols
(
1
,
3
)
<<
std
::
endl
;
return
0
;
}