You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@testset"LU decomposition ($m×$n, pivot=$pivot)"for pivot in (true, false), m in [0:4..., 15], n in [0:4..., 15]
15
-
a =SMatrix{m,n,Int}(1:(m*n))
14
+
@testset"LU decomposition ($m×$n, pivot=$pivot, wrapper=$wrapper)"for pivot in (true, false), m in [0:4..., 15], n in [0:4..., 15], wrapper in [identity, Symmetric, Hermitian]
15
+
16
+
a =if m == n && m >0
17
+
wrapper(SMatrix{m,n,Int}(1:(m*n)))
18
+
elseif wrapper !== identity
19
+
continue
20
+
else
21
+
SMatrix{m,n,Int}(1:(m*n))
22
+
end
16
23
l, u, p =@inferred(lu(a, Val{pivot}(); check =false))
17
24
18
25
# expected types
@@ -48,6 +55,7 @@ end
48
55
# decomposition is correct
49
56
l_u = l*u
50
57
@test l*u ≈ a[p,:]
58
+
51
59
end
52
60
53
61
@testset"LU division ($m×$n)"for m in [1:4..., 15], n in [1:4..., 15]
0 commit comments