-
Notifications
You must be signed in to change notification settings - Fork 192
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
Rounding issue in Takagi when complex #357
Comments
@nquesada, what do you think the best solution to this is? If we change |
It is certainly tempting to just change |
I did some research into this issue. There are at least two other ways to implement Takagi-Autonne. The second approach follows what is done here https://pypi.org/project/takagi-fact/ but unless you are working with |
Nice! So I guess the solution is stick with the existing Takagi decomposition? We could do something similar to what happens in SciPy/Matlab etc. when you ask for the matrix square root of a matrix that is near-singular; a warning is raised that says 'Matrix is ill-conditioned, results might be inaccurate' |
@nquesada can we close this issue or is this on the todo list? |
Not sure. It is still a bug, but as far as I can tell there is no fix to it. |
When using
decomposition.takagi
there is a problem when the matrix is complex and has singular value close to zero. The funciontakagi
has an optional argument calledrounding
which uses to decide how many decimal digits it should keep when deciding if a two singular values are the same, the default value isrounding=13
. Note in the following example how this fails:which gives
False False
. Note that ifrounding=12
ofreal=True
everything works as expected.The text was updated successfully, but these errors were encountered: