Tutorial_AdvancedInitialization_LinSpaced.cpp
Go to the documentation of this file.
00001 ArrayXXf table(10, 4);
00002 table.col(0) = ArrayXf::LinSpaced(10, 0, 90);
00003 table.col(1) = M_PI / 180 * table.col(0);
00004 table.col(2) = table.col(1).sin();
00005 table.col(3) = table.col(1).cos();
00006 std::cout << "  Degrees   Radians      Sine    Cosine\n";
00007 std::cout << table << std::endl;


libicr
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:33:55