source: pacpussensors/trunk/Vislab/lib3dv/eigen/doc/snippets/Tutorial_AdvancedInitialization_LinSpaced.cpp@ 136

Last change on this file since 136 was 136, checked in by ldecherf, 7 years ago

Doc

File size: 272 bytes
Line 
1ArrayXXf table(10, 4);
2table.col(0) = ArrayXf::LinSpaced(10, 0, 90);
3table.col(1) = M_PI / 180 * table.col(0);
4table.col(2) = table.col(1).sin();
5table.col(3) = table.col(1).cos();
6std::cout << " Degrees Radians Sine Cosine\n";
7std::cout << table << std::endl;
Note: See TracBrowser for help on using the repository browser.