Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

JacobiSVD Returns Incorrect Matrices #5

Open
nriaziat opened this issue Feb 22, 2023 · 2 comments
Open

JacobiSVD Returns Incorrect Matrices #5

nriaziat opened this issue Feb 22, 2023 · 2 comments

Comments

@nriaziat
Copy link

Hi,

I'm attempting to use the JacbiSVD algorithm on some 3x3 matrices and consistently get wildly incorrect SVD results (comparing to MATLAB). Both the singular values and the resulting U,V matrices are off by several orders of magnitude. Any ideas why this could be? I'm using stlport.h to compile for an Arduino Mega 2560.

Thanks!

@rpavlik
Copy link
Member

rpavlik commented Feb 22, 2023

Not sure though I haven't used this in forever. You could check upstream Eigen to see if they've fixed any bugs in that code there. (The only easy guess I have is possibly memory order, see if the result on the transpose looks better...)

@nriaziat
Copy link
Author

I'll check the transpose but the singular values should still be invariant under transposition so I'd expect those values to be correct.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants