You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
293 B

  1. #include <StormEigen/Core>
  2. #include <iostream>
  3. using namespace StormEigen;
  4. using namespace std;
  5. int main(void)
  6. {
  7. int const N = 5;
  8. MatrixXi A(N,N);
  9. A.setRandom();
  10. cout << "A =\n" << A << '\n' << endl;
  11. cout << "A(1..3,:) =\n" << A.middleRows<3>(1) << endl;
  12. return 0;
  13. }