Extend tutorial page 5: Advanced initialization.

This commit is contained in:
Jitse Niesen
2010-07-22 15:53:21 +01:00
parent 96ba7cd655
commit 403e672587
7 changed files with 174 additions and 13 deletions

View File

@@ -0,0 +1,7 @@
ArrayXXf table(10, 4);
table.col(0) = ArrayXf::LinSpaced(10, 0, 90);
table.col(1) = M_PI / 180 * table.col(0);
table.col(2) = table.col(1).sin();
table.col(3) = table.col(1).cos();
std::cout << " Degrees Radians Sine Cosine\n";
std::cout << table << std::endl;