hmartiro / kalman-cpp

Basic Kalman filter implementation in C++ using Eigen
MIT License
517 stars 134 forks source link

Inverse of a singular matrix result in inf #6

Open iyabchen opened 5 years ago

iyabchen commented 5 years ago

In code K = P*C.transpose()*(C*P*C.transpose() + R).inverse();, the inverse of a matrix might not exist if the matrix is singular, and K is invalid in that case.

pattylo commented 2 years ago

could try the joseph formulation in that case.