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.

11 lines
267 B

  1. RowVectorXd vec1(3);
  2. vec1 << 1, 2, 3;
  3. std::cout << "vec1 = " << vec1 << std::endl;
  4. RowVectorXd vec2(4);
  5. vec2 << 1, 4, 9, 16;;
  6. std::cout << "vec2 = " << vec2 << std::endl;
  7. RowVectorXd joined(7);
  8. joined << vec1, vec2;
  9. std::cout << "joined = " << joined << std::endl;