Skip to content

Commit b8d1ecc

Browse files
authored
also return a new LU object in the generic case
1 parent 1bd4b06 commit b8d1ecc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lu.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ end
115115

116116
function lu!(F::LU{<:Any,<:AbstractMatrix}, A; check::Bool = true, allowsingular::Bool = false)
117117
copyto!(F.factors, A)
118-
generic_lufact!(F.factors, lupivottype(eltype(A)), F.ipiv; check, allowsingular)
119-
return F
118+
return generic_lufact!(F.factors, lupivottype(eltype(A)), F.ipiv; check, allowsingular)
120119
end
121120

122121

0 commit comments

Comments
 (0)