DenseBase_template_int_middleRows.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.middleRows<3>(1) << endl;
00014     return 0;
00015 }


libicr
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:32:37