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
15 changes: 2 additions & 13 deletions src/detx.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,11 @@ Here `T` can be any kind of integer, rational, `Mod`, or `GF2`.
I hope to expand this to `Polynomial`s.
"""
function detx(A::AbstractMatrix{T}) where {T<:IntegerX}
# @info "Using IntegerX detx{$T}"
try
return T(det(A // 1))
catch
A = big.(A)
return detx(A)
end
det(A // true)
end

function detx(A::AbstractMatrix{T}) where {T<:RationalX}
# @info "Using RationalX detx{$T}"
try
return det(A)
catch
return det(big.(A))
end
det(A)
end

function detx(A::AbstractMatrix{T}) where {T}
Expand Down