Skip to content

Commit

Permalink
TropicalGeometry: allow point_vector as input for initial
Browse files Browse the repository at this point in the history
  • Loading branch information
YueRen committed Aug 19, 2024
1 parent 6b48af3 commit 988b607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TropicalGeometry/initial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ x + y + 1
```
"""
function initial(f::MPolyRingElem, nu::TropicalSemiringMap, w::Vector{<:Union{QQFieldElem,ZZRingElem,Rational,Integer}}; perturbation::Union{Nothing,Vector{<:Union{QQFieldElem,ZZRingElem,Rational,Integer}}}=nothing)
function initial(f::MPolyRingElem, nu::TropicalSemiringMap, w::AbstractVector{<:Union{QQFieldElem,ZZRingElem,Rational,Integer}}; perturbation::Union{Nothing,AbstractVector{<:Union{QQFieldElem,ZZRingElem,Rational,Integer}}}=nothing)

###
# Evaluate the tropicalization of f and all its terms at w,
Expand Down Expand Up @@ -110,7 +110,7 @@ Ideal generated by
-2*x^2*y + 3*y^3
```
"""
function initial(I::MPolyIdeal, nu::TropicalSemiringMap, w::Vector{<:Union{QQFieldElem,ZZRingElem,Rational,Integer}}; skip_groebner_basis_computation::Bool=false)
function initial(I::MPolyIdeal, nu::TropicalSemiringMap, w::AbstractVector{<:Union{QQFieldElem,ZZRingElem,Rational,Integer}}; skip_groebner_basis_computation::Bool=false)
G = (skip_groebner_basis_computation ? gens(G) : groebner_basis(I,nu,w))
return ideal(initial.(G,Ref(nu),Ref(w)))
end

0 comments on commit 988b607

Please sign in to comment.