Skip to content

Commit 1c71fda

Browse files
author
oscarddssmith
committed
only check that values are finite when check=true
1 parent 4995d3f commit 1c71fda

File tree

1 file changed

+1
-1
lines changed
  • stdlib/LinearAlgebra/src

1 file changed

+1
-1
lines changed

stdlib/LinearAlgebra/src/lu.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ lu!(A::AbstractMatrix, pivot::Union{RowMaximum,NoPivot,RowNonZero} = lupivottype
133133
generic_lufact!(A, pivot; check = check)
134134
function generic_lufact!(A::AbstractMatrix{T}, pivot::Union{RowMaximum,NoPivot,RowNonZero} = lupivottype(T);
135135
check::Bool = true) where {T}
136-
LAPACK.chkfinite(A)
136+
check && LAPACK.chkfinite(A)
137137
# Extract values
138138
m, n = size(A)
139139
minmn = min(m,n)

0 commit comments

Comments
 (0)