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.
12 lines
266 B
12 lines
266 B
2 years ago
|
RowVectorXd vec1(3);
|
||
|
vec1 << 1, 2, 3;
|
||
|
std::cout << "vec1 = " << vec1 << std::endl;
|
||
|
|
||
|
RowVectorXd vec2(4);
|
||
|
vec2 << 1, 4, 9, 16;
|
||
|
std::cout << "vec2 = " << vec2 << std::endl;
|
||
|
|
||
|
RowVectorXd joined(7);
|
||
|
joined << vec1, vec2;
|
||
|
std::cout << "joined = " << joined << std::endl;
|