-
Notifications
You must be signed in to change notification settings - Fork 7
Mooncake testsuite refactor #175
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
Merged
Merged
Changes from 13 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c69b57b
small refactor QR pullback
lkdvos 734f390
testsuite reorganisation
lkdvos 023cfed
add QR mooncake tests
lkdvos 159da4d
Genius suggestion by @Jutho fixes everything
lkdvos deda605
Refactor Mooncake LQ tests
lkdvos 98c9fc0
Refactor Mooncake Eig tests
lkdvos 64a4246
fix pullback implementations!
lkdvos 8b209c2
Refactor Mooncake SVD tests
lkdvos f8d7cc6
Refactor Mooncake Polar tests
lkdvos 552559f
make testsets verbose
lkdvos 9161bde
Refactor Mooncake OrthNull tests
lkdvos 6550d8b
clean up
lkdvos b3329de
rename `call_and_zero!`
lkdvos 61e8061
move gauge dependence removal to ad_utils again
lkdvos 0de37f0
separate out mooncake tests
lkdvos 2238bf8
Update src/pullbacks/qr.jl
lkdvos 7dd64c8
move functions to ad_utils
lkdvos 81d9d42
more ad_setup usage
lkdvos bb4076d
add back rank_deficient tests
lkdvos c7dadcd
clean up QR/LQ pullbacks
lkdvos a140eda
add back `trunctol` tests
lkdvos 4afc992
more more ad_setup usage + chainrules simplification
lkdvos fa33e57
make qr/lq gauge dependence also fix R/L
lkdvos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -8,15 +8,6 @@ function remove_svdgauge_dependence!( | |||||
| mul!(ΔU, U, gaugepart, -1, 1) | ||||||
| return ΔU, ΔVᴴ | ||||||
| end | ||||||
| function remove_eiggauge_dependence!( | ||||||
| ΔV, D, V; | ||||||
| degeneracy_atol = MatrixAlgebraKit.default_pullback_gauge_atol(D) | ||||||
| ) | ||||||
| gaugepart = V' * ΔV | ||||||
| gaugepart[abs.(transpose(diagview(D)) .- diagview(D)) .>= degeneracy_atol] .= 0 | ||||||
| mul!(ΔV, V / (V' * V), gaugepart, -1, 1) | ||||||
| return ΔV | ||||||
| end | ||||||
| function remove_eighgauge_dependence!( | ||||||
| ΔV, D, V; | ||||||
| degeneracy_atol = MatrixAlgebraKit.default_pullback_gauge_atol(D) | ||||||
|
|
@@ -204,7 +195,7 @@ function ad_eig_full_setup(A) | |||||
| D, V = DV | ||||||
| Ddiag = diagview(D) | ||||||
| ΔV = randn!(similar(A, complex(T), m, m)) | ||||||
| ΔV = remove_eiggauge_dependence!(ΔV, D, V) | ||||||
| ΔV = remove_eig_gauge_dependence!(ΔV, D, V) | ||||||
| ΔD = randn!(similar(A, complex(T), m, m)) | ||||||
| ΔD2 = Diagonal(randn!(similar(A, complex(T), m))) | ||||||
| return DV, (ΔD, ΔV), (ΔD2, ΔV) | ||||||
|
|
@@ -216,7 +207,7 @@ function ad_eig_full_setup(A::Diagonal) | |||||
| DV = eig_full(A) | ||||||
| D, V = DV | ||||||
| ΔV = randn!(similar(A.diag, T, m, m)) | ||||||
| ΔV = remove_eiggauge_dependence!(ΔV, D, V) | ||||||
| ΔV = remove_eig_gauge_dependence!(ΔV, D, V) | ||||||
| ΔD = Diagonal(randn!(similar(A.diag, T, m))) | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
or also using |
||||||
| ΔD2 = Diagonal(randn!(similar(A.diag, T, m))) | ||||||
| return DV, (ΔD, ΔV), (ΔD2, ΔV) | ||||||
|
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
test/testsuite/orthnull.jl → test/testsuite/decompositions/orthnull.jl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.