Skip to content

Commit 1e91213

Browse files
authored
Check if iterables are empty (#11)
* Check if iterables will be empty in two locations. * Bump version.
1 parent 87a931d commit 1e91213

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "RecursiveFactorization"
22
uuid = "f2c3362d-daeb-58d1-803e-2bc74f2840b4"
33
authors = ["Yingbo Ma <[email protected]>"]
4-
version = "0.1.3"
4+
version = "0.1.4"
55

66
[deps]
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/lu.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,13 @@ function _generic_lufact!(A, ::Val{Pivot}, ipiv, info) where Pivot
181181
end
182182
# Scale first column
183183
Akkinv = inv(A[k,k])
184-
@avx for i = k+1:m
184+
@avx check_empty=true for i = k+1:m
185185
A[i,k] *= Akkinv
186186
end
187187
elseif info == 0
188188
info = k
189189
end
190+
k == minmn && break
190191
# Update the rest
191192
@avx for j = k+1:n
192193
for i = k+1:m

0 commit comments

Comments
 (0)