blob: 0ebd955ec8965e3433d32db7b3d6a7d3027347ab [file] [log] [blame]
Brian Silverman72890c22015-09-19 14:37:37 -04001#include <Eigen/Core>
2#include <iostream>
3
4using namespace Eigen;
5using namespace std;
6
7int main(void)
8{
9 int const N = 5;
10 MatrixXi A(N,N);
11 A.setRandom();
12 cout << "A =\n" << A << '\n' << endl;
13 cout << "A(1..3,:) =\n" << A.middleCols(1,3) << endl;
14 return 0;
15}