Skip to content

Commit

Permalink
only check that values are finite when check=true
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Jul 12, 2023
1 parent 4995d3f commit 1c71fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/LinearAlgebra/src/lu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ lu!(A::AbstractMatrix, pivot::Union{RowMaximum,NoPivot,RowNonZero} = lupivottype
generic_lufact!(A, pivot; check = check)
function generic_lufact!(A::AbstractMatrix{T}, pivot::Union{RowMaximum,NoPivot,RowNonZero} = lupivottype(T);
check::Bool = true) where {T}
LAPACK.chkfinite(A)
check && LAPACK.chkfinite(A)
# Extract values
m, n = size(A)
minmn = min(m,n)
Expand Down

0 comments on commit 1c71fda

Please sign in to comment.