source:
pacpussensors/trunk/Vislab/lib3dv/eigen/doc/snippets/Tutorial_AdvancedInitialization_Zero.cpp@
138
Last change on this file since 138 was 136, checked in by , 8 years ago | |
---|---|
File size: 332 bytes |
Line | |
---|---|
1 | std::cout << "A fixed-size array:\n"; |
2 | Array33f a1 = Array33f::Zero(); |
3 | std::cout << a1 << "\n\n"; |
4 | |
5 | |
6 | std::cout << "A one-dimensional dynamic-size array:\n"; |
7 | ArrayXf a2 = ArrayXf::Zero(3); |
8 | std::cout << a2 << "\n\n"; |
9 | |
10 | |
11 | std::cout << "A two-dimensional dynamic-size array:\n"; |
12 | ArrayXXf a3 = ArrayXXf::Zero(3, 4); |
13 | std::cout << a3 << "\n"; |
Note:
See TracBrowser
for help on using the repository browser.