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 fcc86bb commit d2b7b41Copy full SHA for d2b7b41
test/svd.jl
@@ -56,7 +56,6 @@ using LinearAlgebra: BlasComplex, BlasFloat, BlasReal, QRPivoted
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 pinv(svd([1 0 1; 0 1 0])) ≈ [0.5 0.0; 0.0 1.0; 0.5 0.0]
60
@test_throws SingularException inv(svd([0 0; 0 0]))
61
@test inv(svd([1+2im 3+4im; 5+6im 7+8im])) ≈ [-0.5 + 0.4375im 0.25 - 0.1875im; 0.375 - 0.3125im -0.125 + 0.0625im]
62
end
0 commit comments