File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,16 @@ arrayts = (Array, JLArray)
6464 @test_broken inv (a)
6565 end
6666
67+ if arrayt === Array && elt <: Real
68+ u, s, v = svd_compact (a)
69+ @test Array (u * s * v) ≈ Array (a)
70+ else
71+ # Broken on GPU and for complex, investigate.
72+ @test_broken svd_compact (a)
73+ end
74+
6775 # Broken operations
6876 @test_broken exp (a)
69- @test_broken svd_compact (a)
7077 @test_broken a[Block .(1 : 2 ), Block (2 )]
7178end
7279
129136 b = @constinferred exp (a)
130137 @test Array (b) ≈ exp (Array (a))
131138
139+ u, s, v = svd_compact (a)
140+ @test u * s * v ≈ a
141+ @test blocktype (u) === blocktype (a)
142+ @test blocktype (v) === blocktype (a)
143+
132144 # Broken operations
133145 @test_broken inv (a)
134- @test_broken svd_compact (a)
135146 @test_broken a[Block .(1 : 2 ), Block (2 )]
136147end
You can’t perform that action at this time.
0 commit comments