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 9b53ddf commit d704080Copy full SHA for d704080
test/factorizations.jl
@@ -260,6 +260,14 @@ for V in spacelist
260
@test isisometry(U4)
261
@test isisometry(Vᴴ4; side = :right)
262
@test norm(t - U4 * S4 * Vᴴ4) <= 0.5
263
+
264
+ trunc = truncrank(dim(domain(S)) ÷ 2) & trunctol(; atol = λ - 10eps(λ))
265
+ U5, S5, Vᴴ5 = @constinferred svd_trunc(t; trunc)
266
+ @test t * Vᴴ5' ≈ U5 * S5
267
+ @test isisometry(U5)
268
+ @test isisometry(Vᴴ5; side = :right)
269
+ @test minimum(minimum, values(LinearAlgebra.diag(S5))) >= λ
270
+ @test dim(domain(S5)) ≤ dim(domain(S)) ÷ 2
271
end
272
273
0 commit comments