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 9fab19c commit e46a5cbCopy full SHA for e46a5cb
test/svd.jl
@@ -53,6 +53,7 @@ using LinearAlgebra: BlasComplex, BlasFloat, BlasReal, QRPivoted
53
@test sf2.U*Diagonal(sf2.S)*sf2.Vt' ≊ m2
54
55
@test ldiv!([0., 0.], svd(Matrix(I, 2, 2)), [1., 1.]) ≊ [1., 1.]
56
+ @test_throws DimensionMismatch inv(svd(Matrix(I, 3, 2)))
57
@test inv(svd(Matrix(I, 2, 2))) ≈ I
58
@test inv(svd([1 2; 3 4])) ≈ [-2.0 1.0; 1.5 -0.5]
59
@test inv(svd([1 0 1; 0 1 0])) ≈ [0.5 0.0; 0.0 1.0; 0.5 0.0]
0 commit comments