Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calc_innovation! fails with broadcast errors for mxn H matrix #6

Closed
zagglez opened this issue Aug 1, 2022 · 2 comments
Closed

calc_innovation! fails with broadcast errors for mxn H matrix #6

zagglez opened this issue Aug 1, 2022 · 2 comments

Comments

@zagglez
Copy link

zagglez commented Aug 1, 2022

Following: https://www.kalmanfilter.net/multiExamples.html - 6 states, 2 measurements.

H = [ 1 0 0 0 0 0
0 0 0 1 0 0 ]
ie, a 2x6 matrix.

OK so with the normal linear KF, everything works fine.

However, the inplace version of calc_innovation, ie calc_innovation! errors with:
DimensionMismatch("cannot broadcast array to have fewer non-singleton dimensions")

@zsoerenm
Copy link
Member

zsoerenm commented Aug 1, 2022

Could you provide a minimum working example?

@zsoerenm
Copy link
Member

zsoerenm commented Dec 4, 2022

I have made some changes. So this might work now.
I will close this. Feel free to re-open the issue, if it doesn't work for you.

@zsoerenm zsoerenm closed this as completed Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants