-
Notifications
You must be signed in to change notification settings - Fork 56
svd_vals(::DiagonalTensorMap) should return a SectorVector
#333
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
Conversation
Codecov Report❌ Patch coverage is
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
I also noticed a small mistake in the PR that added U, S, Vᴴ = svd_compact(t) # or svd_full
return U, diagview(S), adjoint(Vᴴ)Maybe you can also include this in the current PR? |
|
Added a small fix to address @Jutho's comment (hopefully) |
|
I'm slightly worried that the diagview will fail for the full case, since we don't return a diagonal in that case. LinearAlgebra actually outputs things that don't multiply correctly there, and I'm not sure how we want to handle this? |
|
I guess this is why we didn't overload the linearalgebra methods 😂 |
Should I just add a test for |
|
Alternatively: is anyone actually using these overloads? Can we just remove them, for now? |
|
I'm happy to remove them again, definitely is independent of this PR |
|
Since they don't seem to be tested anyway I say kill em all!!! |
lkdvos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's still an entry in the changelog that can be deleted again, afterwards I would just merge this
|
Nightly failures are the same Zygote stuff as usual. Is this good to go? |
Noticed some test failures in #325 due to the diagonal algorithms not returning a
SectorVector, so I fixed that, added some tests and then found some other inconsistencies:svd_valswas sorting the entireSectorVector, effectively mixing up the blocks.Both of these are fixed here.