Skip to content

Commit b3921af

Browse files
committed
fix test
1 parent 52b2d58 commit b3921af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/svd.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ using LinearAlgebra: BlasComplex, BlasFloat, BlasReal, QRPivoted
5656
@test_throws DimensionMismatch inv(svd(Matrix(I, 3, 2)))
5757
@test inv(svd(Matrix(I, 2, 2))) I
5858
@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]
59+
@test Matrix(pinv(svd([1 0 1; 0 1 0]))) [0.5 0.0; 0.0 1.0; 0.5 0.0]
6060
@test_throws SingularException inv(svd([0 0; 0 0]))
6161
@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]
6262
end

0 commit comments

Comments
 (0)