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 }
MatrixXcf A
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:182