We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
randn
1 parent 518af61 commit d29d4d1Copy full SHA for d29d4d1
1 file changed
test/factorizations/svd.jl
@@ -21,9 +21,9 @@ for V in spacelist
21
@testset "Condition number and rank" begin
22
for T in eltypes,
23
t in (
24
- rand(T, W, W), rand(T, W, W)',
25
- rand(T, (V1 ⊗ V2 ⊗ V3), (V4 ⊗ V5)'), rand(T, (V1 ⊗ V2)', (V3 ⊗ V4 ⊗ V5))',
26
- rand(T, (V1 ⊗ V2), (V3 ⊗ V4 ⊗ V5)'), rand(T, (V1 ⊗ V2 ⊗ V3)', (V4 ⊗ V5))',
+ randn(T, W, W), randn(T, W, W)',
+ randn(T, (V1 ⊗ V2 ⊗ V3), (V4 ⊗ V5)'), randn(T, (V1 ⊗ V2)', (V3 ⊗ V4 ⊗ V5))',
+ randn(T, (V1 ⊗ V2), (V3 ⊗ V4 ⊗ V5)'), randn(T, (V1 ⊗ V2 ⊗ V3)', (V4 ⊗ V5))',
27
DiagonalTensorMap(rand(T, reduceddim(Vd)), Vd),
28
)
29
@@ -47,7 +47,7 @@ for V in spacelist
47
@test rank(t2) == 0
48
@test cond(t2) == 0.0
49
end
50
- for T in eltypes, t in (rand(T, W, W), rand(T, W, W)')
+ for T in eltypes, t in (randn(T, W, W), randn(T, W, W)')
51
project_hermitian!(t)
52
vals = @constinferred LinearAlgebra.eigvals(t)
53
λmax = maximum(s -> maximum(abs, s), values(vals))
0 commit comments