Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
micjoswig committed Jul 17, 2024
1 parent 9078816 commit 05f98be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TropicalGeometry/matrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ julia> det(A)
(5)
```
"""
function det(A::Generic.MatSpaceElem{R}) where {R<:Union{TropicalSemiringElem,MPolyRingElem{<:TropicalSemiringElem},PolyRingElem{<:TropicalSemiringElem}}}
function det(A::Generic.MatSpaceElem{TropicalSemiringElem{minOrMax}}) where {minOrMax<:Union{typeof(max), typeof(min)}}
nrows(A)!=ncols(A) && error("Non-square matrix")
T = base_ring(A)
return T(Polymake.tropical.tdet(A))
Expand Down

0 comments on commit 05f98be

Please sign in to comment.