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 321c710 commit 29155d4Copy full SHA for 29155d4
src/generic.jl
@@ -1846,7 +1846,7 @@ julia> det(BigInt[1 0; 2 2]) # exact integer determinant
1846
function det(A::AbstractMatrix{T}) where {T}
1847
if istriu(A) || istril(A)
1848
S = promote_type(T, typeof((one(T)*zero(T) + zero(T))/one(T)))
1849
- return prod(S, @view A[diagind(A)])
+ return prod(Base.Fix1(convert, S), @view A[diagind(A)])
1850
end
1851
return det(lu(A; check = false))
1852
0 commit comments