summaryrefslogtreecommitdiffstats
path: root/src/eigen-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/eigen-test.cpp')
-rw-r--r--src/eigen-test.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/eigen-test.cpp b/src/eigen-test.cpp
new file mode 100644
index 0000000..91869d5
--- /dev/null
+++ b/src/eigen-test.cpp
@@ -0,0 +1,21 @@
+/*
+ * This file is part of MXE.
+ * See index.html for further information.
+ *
+ * This code was originally found on:
+ * http://eigen.tuxfamily.org/dox/GettingStarted.html
+ */
+
+#include <Eigen/Dense>
+
+using Eigen::MatrixXd;
+
+int main()
+{
+ MatrixXd m(2,2);
+ m(0,0) = 3;
+ m(1,0) = 2.5;
+ m(0,1) = -1;
+ m(1,1) = m(1,0) + m(0,1);
+ return 0;
+}