Skip to content

Commit

Permalink
[ToricVarieties] Avoid unnessary allocations
Browse files Browse the repository at this point in the history
Co-authored-by: Lars Göttgens <[email protected]>
  • Loading branch information
HereAround and lgoettgens authored Oct 24, 2024
1 parent 5f1c880 commit 9cd126e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ julia> coordinate_names(antv)
"""
@attr Vector{String} function coordinate_names(v::NormalToricVarietyType)
if has_attribute(v, :cox_ring)
return string.(gens(cox_ring(v)))
return string.(symbols(cox_ring(v)))
end
return ["x$(i)" for i in 1:torsion_free_rank(torusinvariant_weil_divisor_group(v))]
end
Expand Down

0 comments on commit 9cd126e

Please sign in to comment.