Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Eigen_test by
Revision 0:5971b11ad8ff, committed 2016-10-13
- Comitter:
- ykuroda
- Date:
- Thu Oct 13 04:07:45 2016 +0000
- Child:
- 1:ad6e79769c8f
- Commit message:
- First commit
Changed in this revision
--- /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
