Sign in
nest-open-source
/
nest-cam
/
v366
/
eigen
/
9d75fdbcd2b5a2fdab03a859ddefda95ce1217ed
/
.
/
doc
/
examples
/
DenseBase_template_int_middleCols.cpp
blob: caefabf81769ac86509a4b868cdbf8a7603c985d [
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
<
3
>(
1
)
<<
std
::
endl
;
return
0
;
}