Skip to content

Commit fc7e7de

Browse files
authored
warn_check_args=false at the correct place
1 parent 5ead5da commit fc7e7de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lu.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ function _generic_lufact!(A, ::Val{Pivot}, ipiv, info) where {Pivot}
278278
kp = k
279279
if Pivot
280280
amax = abs(zero(eltype(A)))
281-
@turbo for i in k:m
281+
@turbo warn_check_args=false for i in k:m
282282
absi = abs(A[i, k])
283283
isnewmax = absi > amax
284284
kp = isnewmax ? i : kp
@@ -289,7 +289,7 @@ function _generic_lufact!(A, ::Val{Pivot}, ipiv, info) where {Pivot}
289289
if !iszero(A[kp, k])
290290
if k != kp
291291
# Interchange
292-
@simd warn_check_args=false for i in 1:n
292+
@simd for i in 1:n
293293
tmp = A[k, i]
294294
A[k, i] = A[kp, i]
295295
A[kp, i] = tmp

0 commit comments

Comments
 (0)