-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make svdvals(::Matrix{<:Complex}) type inferrable (#22443)
* Make svdvals(::Matrix{<:Complex}) type inferrable Ensure that svdvals(zeros(Complex128,0,0)) returns a complex real matrix to avoid type instability. Also add some simplistic but explicit tests for svdvals and svdfact, including ensuring this case is inferred. * Add unitarity test for SVD U and Vt parts. * Use \approxeq in tests instead of clobbering \approx
- Loading branch information
1 parent
236e486
commit 2de5dab
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 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