diff options
author | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2010-06-13 22:39:27 +0100 |
---|---|---|
committer | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2010-06-13 22:39:27 +0100 |
commit | 9e00697ccce3c51d00e3753764272756f458e323 (patch) | |
tree | b7ab1a9b999d81aca557c76964c6e1cf9d725f9a /doc/examples/QuickStart_example.cpp | |
parent | 9ffc0f6975a6dec86b8e9eacc0af019124d20d43 (diff) |
First draft for the 5-minute quick start guide to kick off discussions.
Diffstat (limited to 'doc/examples/QuickStart_example.cpp')
-rw-r--r-- | doc/examples/QuickStart_example.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/examples/QuickStart_example.cpp b/doc/examples/QuickStart_example.cpp new file mode 100644 index 000000000..5337f0f4f --- /dev/null +++ b/doc/examples/QuickStart_example.cpp @@ -0,0 +1,13 @@ +#include <iostream> +#include <Eigen/Dense> + +using Eigen::MatrixXd; + +int main(int, char *[]) +{ + MatrixXd m(2,3); + m(0,0) = -3; + m(1,0) = 1.5; + m.rightCols(2) = MatrixXd::Identity(2,2); + std::cout << 2*m << std::endl; +} |