We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81185a4 commit a44245eCopy full SHA for a44245e
test/svd.jl
@@ -22,7 +22,12 @@ using MatrixAlgebraKit: TruncationKeepAbove, diagview
22
minmn = min(m, n)
23
A = randn(rng, T, m, n)
24
25
- U, S, Vᴴ = @constinferred svd_compact(A; alg=($alg))
+ if VERSION < v"1.12"
26
+ # This is type unstable on older versions of Julia.
27
+ U, S, Vᴴ = svd_compact(A; alg)
28
+ else
29
+ U, S, Vᴴ = @constinferred svd_compact(A; alg=($alg))
30
+ end
31
@test U isa Matrix{T} && size(U) == (m, minmn)
32
@test S isa Diagonal{real(T)} && size(S) == (minmn, minmn)
33
@test Vᴴ isa Matrix{T} && size(Vᴴ) == (minmn, n)
0 commit comments