source:
pacpussensors/trunk/Vislab/lib3dv/eigen/doc/snippets/Tutorial_AdvancedInitialization_Join.cpp@
138
Last change on this file since 138 was 136, checked in by , 8 years ago | |
---|---|
File size: 267 bytes |
Line | |
---|---|
1 | RowVectorXd vec1(3); |
2 | vec1 << 1, 2, 3; |
3 | std::cout << "vec1 = " << vec1 << std::endl; |
4 | |
5 | RowVectorXd vec2(4); |
6 | vec2 << 1, 4, 9, 16;; |
7 | std::cout << "vec2 = " << vec2 << std::endl; |
8 | |
9 | RowVectorXd joined(7); |
10 | joined << vec1, vec2; |
11 | std::cout << "joined = " << joined << std::endl; |
Note:
See TracBrowser
for help on using the repository browser.