Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 11 months ago.
Modifiying Matrix & MatrixMath classes for Double precision from float
https://os.mbed.com/cookbook/MatrixClass
I find the above class very useful. I use Matrix.h and MatrixMath.h libraries . But I am in need of double precision on 2x2 matrices . I am ready to compromise on computation time. How can I selectively modify above libraries for double matrix definition 2x2 and multiplication. Current float definition provides 3 digit precision I just need a 4 digit precision.
I am need of only matrix multiplication function with 4 digit float precision.
PS: (This is for an extended kalman filter implementation. to estimate battery state of charge)