Skip to content

Commit

Permalink
[ToricVarieties] Add checks to computation of hilbert basis of weight…
Browse files Browse the repository at this point in the history
…_cone
  • Loading branch information
HereAround authored and fieker committed Sep 29, 2023
1 parent 1676963 commit 9a71001
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,11 @@ julia> hilbert_basis(antv)
[ 0 1]
```
"""
@attr ZZMatrix hilbert_basis(v::AffineNormalToricVariety) = matrix(ZZ, hilbert_basis(weight_cone(v)))
@attr ZZMatrix function hilbert_basis(v::AffineNormalToricVariety)
@req is_pointed(weight_cone(v)) "Weight cone is not pointed"
@req isfulldimensional(weight_cone(v)) "Weight cone is not full dimensional"
return matrix(ZZ, hilbert_basis(weight_cone(v)))
end


_variable_ray_correspondence(v::NormalToricVarietyType) = Dict{RayVector, MPolyRingElem}(zip(rays(v), gens(cox_ring(v))))
Expand Down

0 comments on commit 9a71001

Please sign in to comment.