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.

13 lines
332 B

  1. std::cout << "A fixed-size array:\n";
  2. Array33f a1 = Array33f::Zero();
  3. std::cout << a1 << "\n\n";
  4. std::cout << "A one-dimensional dynamic-size array:\n";
  5. ArrayXf a2 = ArrayXf::Zero(3);
  6. std::cout << a2 << "\n\n";
  7. std::cout << "A two-dimensional dynamic-size array:\n";
  8. ArrayXXf a3 = ArrayXXf::Zero(3, 4);
  9. std::cout << a3 << "\n";