Skip to content

Commit e46a5cb

Browse files
committed
test for inv(::SVD) nonsquare
1 parent 9fab19c commit e46a5cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/svd.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ using LinearAlgebra: BlasComplex, BlasFloat, BlasReal, QRPivoted
5353
@test sf2.U*Diagonal(sf2.S)*sf2.Vt' m2
5454

5555
@test ldiv!([0., 0.], svd(Matrix(I, 2, 2)), [1., 1.]) [1., 1.]
56+
@test_throws DimensionMismatch inv(svd(Matrix(I, 3, 2)))
5657
@test inv(svd(Matrix(I, 2, 2))) I
5758
@test inv(svd([1 2; 3 4])) [-2.0 1.0; 1.5 -0.5]
5859
@test inv(svd([1 0 1; 0 1 0])) [0.5 0.0; 0.0 1.0; 0.5 0.0]

0 commit comments

Comments
 (0)