Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function lu!(A::AbstractMatrix{T}, ipiv::AbstractVector{<:Integer},
info = _generic_lufact!(A, pivot, ipiv, info)
end
((check isa Bool && check) || (check === Val(true))) && checknonsingular(info)
LU(A, ipiv, info)
LU(A, ipiv, -info)
end

@inline function recurse!(A, ::Val{Pivot}, m, n, mnmin, ipiv, info, blocksize,
Expand Down Expand Up @@ -302,7 +302,7 @@ function _generic_lufact!(A, ::Val{Pivot}, ipiv, info) where {Pivot}
A[i, k] *= Akkinv
end
elseif info == 0
info = k
info = -k
end
k == minmn && break
# Update the rest
Expand Down
Loading