summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2015-03-06 23:40:34 +0800
committerJoe Zhao <ztuowen@gmail.com>2015-03-06 23:40:34 +0800
commit49fb07f512c98c1b207c1080b642446531ab056a (patch)
tree9fbe793a62177ca7008feedd21fb754c6a425ccb /main.cpp
downloadranksvm-49fb07f512c98c1b207c1080b642446531ab056a.tar.gz
ranksvm-49fb07f512c98c1b207c1080b642446531ab056a.tar.bz2
ranksvm-49fb07f512c98c1b207c1080b642446531ab056a.zip
init commit
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
new file mode 100644
index 0000000..7238c0c
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,14 @@
+#include <iostream>
+#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);
+ std::cout << m << std::endl;
+}