source:
pacpussensors/trunk/Vislab/lib3dv/eigen/doc/examples/DenseBase_middleRows_int.cpp@
136
| Last change on this file since 136 was 136, checked in by , 9 years ago | |
|---|---|
| File size: 282 bytes | |
| Line | |
|---|---|
| 1 | #include <Eigen/Core> |
| 2 | #include <iostream> |
| 3 | |
| 4 | using namespace Eigen; |
| 5 | using namespace std; |
| 6 | |
| 7 | int 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(2..3,:) =\n" << A.middleRows(2,2) << endl; |
| 14 | return 0; |
| 15 | } |
Note:
See TracBrowser
for help on using the repository browser.
