| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Explicitly remove 0 from eigenvalue signs to ensure that vh is unitary
sign contains zero here as x @ x = [[1, 0], [0, 0]].
|
MEMO: I suspect two CI failures are not related to this PR. |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks @EarlMilktea. The fix looks correct, but I have some suggested changes in the implementation.
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good to me.
Sorry, something went wrong.
…31347) * Explicitly remove 0 from eigenvalue signs to ensure that vh is unitary. * Add Hermitian SVD test that has 0 as a singular value.
BUG: `np.linalg.svd(..., hermitian=True)` returns non-unitary `vh` (#31347)
| Back | FazBrowse Home | New Git URL |
PR summary
Currently np.linalg.svd can return non-unitary vh due to sign 0 appearing when input array is singular.
This PR fixes the issue.
AI Disclosure
I've used ChatGPT to ensure that my PR is following the guideline. No codes are generated by AI.