This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Eigen Works Well with Arduino 32bit Due

Tags: None
(comma "," separated)
randomvibe
Registered Member
Posts
5
Karma
0
Some background followed by my question....

Background:
I have been a Matlab power user for a long time and very accustomed to the vector programming style which makes coding linear algebra very natural, simple and minimalistic. I implemented a Kalman filter in Matlab from scratch (did not use toolbox) for a basic IMU (inertial measurement unit), and wanted to do the same in the Arduino Due 32-bit microcontroller. But I dreaded this because Arduino's core programming language is C++ and frankly I dislike C++, fortran, etc. Then I discovered Eigen, and wow, it's almost as simple as Matlab and Octave. I'm very impressed - to the Eigen developers, thank you very much. My Kalman filter is working on the Arduino Due using Eigen 3.1.3.

Question: I'm very happy and excited by the overloaded math operators for matrices. Addition, subtraction and multiplication are covered, but what about division? Is it possible to overload the "/" symbol? This would help clean up the Kalman filter linear algebra coding.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Yahoo [Bot]