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 <lars.goettgens@gmail.com>
  • Loading branch information
HereAround and lgoettgens committed Oct 25, 2024
1 parent 3923b8b commit 7d82325
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 7d82325

Please sign in to comment.