We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11042f9 commit 794e554Copy full SHA for 794e554
src/array/lu.jl
@@ -37,7 +37,7 @@ end
37
function update_ipiv!(ipivl::AbstractVector{Int}, piv_idx::AbstractVector{Int}, piv_val::AbstractVector{T}, k::Int, nb::Int) where T
38
max_piv_idx = argmax(abs.(piv_val))
39
max_piv_val = abs(piv_val[max_piv_idx])
40
- isapprox(max_piv_val, zero(T); atol=eps(T)) && throw(LinearAlgebra.SingularException(k))
+ isapprox(max_piv_val, zero(T); atol=eps(real(T))) && throw(LinearAlgebra.SingularException(k))
41
ipivl[1] = (max_piv_idx+k-2)*nb + piv_idx[max_piv_idx]
42
end
43
0 commit comments