-
Notifications
You must be signed in to change notification settings - Fork 5
Split svd_trunc #116
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
Split svd_trunc #116
Conversation
|
Your PR no longer requires formatting changes. Thank you for your contribution! |
Now we have a `svd_trunc_with_err` that returns epsilon for those who wish, and `svd_trunc` returns only the truncated USVh
7669475 to
ebffb20
Compare
Codecov Report❌ Patch coverage is
🚀 New features to boost your workflow:
|
| alg_svd = select_algorithm(svd_compact!, A, alg; kwargs...) | ||
| return TruncatedAlgorithm(alg_svd, select_truncation(trunc)) | ||
| for f in (:svd_trunc!, :svd_trunc_no_error!) | ||
| @eval function select_algorithm(::typeof($f), A, alg; trunc = nothing, kwargs...) |
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.
Can we do the Union{typeof(svd_trunc!), typeof(svd_trunc_no_error!)} again, or is there an advantage to this approach?
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.
Here I did it this way mostly to follow the convention above, not sure it matters much?
|
Looks good to me! |
Now we have a
svd_trunc_with_errthat returns epsilon for those who wish, andsvd_truncreturns only the truncated USVh