Yoji KURODA / Mbed 2 deprecated Odometry_test

Dependencies:   Eigen mbed

Fork of Eigen_test by Yoji KURODA

Files at this revision

API Documentation at this revision

Comitter:
ykuroda
Date:
Thu Oct 13 04:07:45 2016 +0000
Child:
1:ad6e79769c8f
Commit message:
First commit

Changed in this revision

Eigen.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Eigen.lib	Thu Oct 13 04:07:45 2016 +0000
@@ -0,0 +1,1 @@
+Eigen#13a5d365ba16
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Oct 13 04:07:45 2016 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include <iostream>
+#include <Eigen/Dense.h>
+using namespace std;
+using namespace Eigen;
+
+int main() {
+
+    Matrix3f A;
+    Vector3f b;
+    A << 1,2,3, 4,5,6, 7,8,10;
+    b << 3, 3, 4;
+    cout << "Here is the matrix A:\n" << A << endl;
+    cout << "Here is the vector b:\n" << b << endl;
+    Vector3f x = A.colPivHouseholderQr().solve(b);
+    //Vector3f x = A.inverse() * b;
+    cout << "The solution is:\n" << x << endl;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Oct 13 04:07:45 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/25aea2a3f4e3
\ No newline at end of file