Eigen 3.4.90
doc
examples
DenseBase_template_int_middleCols.cpp
Go to the documentation of this file.
1
#include <
Eigen/Core
>
2
#include <iostream>
3
4
int
main
()
5
{
6
int
const
N = 5;
7
Eigen::MatrixXi
A
(N,N);
8
A
.setRandom();
9
std::cout <<
"A =\n"
<<
A
<<
'\n'
<< std::endl;
10
std::cout <<
"A(:,1..3) =\n"
<<
A
.middleCols<3>(1) << std::endl;
11
return
0;
12
}
A
MatrixXcf A
Definition:
ComplexEigenSolver_compute.cpp:1
Core
main
int main()
Definition:
DenseBase_template_int_middleCols.cpp:4
Eigen::Matrix
The matrix class, also used for vectors and row-vectors.
Definition:
Matrix.h:182