DenseBase_template_int_middleCols.cpp
Go to the documentation of this file.
00001 #include <Eigen/Core>
00002 #include <iostream>
00003 
00004 using namespace Eigen;
00005 using namespace std;
00006 
00007 int main(void)
00008 {
00009     int const N = 5;
00010     MatrixXi A(N,N);
00011     A.setRandom();
00012     cout << "A =\n" << A << '\n' << endl;
00013     cout << "A(:,1..3) =\n" << A.middleCols<3>(1) << endl;
00014     return 0;
00015 }


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:31:00