-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ToricVarieties] Shorthands for hirzebruch surface and del Pezzo surface #4051
base: master
Are you sure you want to change the base?
Conversation
Just to note: The current format was decided on in #922. The other area in Oscar that came to my mind with these function names was geometry/schemes. Thus pinging some people to get opinions on this @jankoboehm @afkafkafk13 @HechtiDerLachs |
We should postpone the discussion of this point, until @simonbrandhorst is back from his holidays (1.9.). |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4051 +/- ##
==========================================
+ Coverage 84.62% 84.65% +0.03%
==========================================
Files 600 600
Lines 82590 82592 +2
==========================================
+ Hits 69894 69921 +27
+ Misses 12696 12671 -25
|
Agreed, we should add constructors for
So far the shorthands for |
Given the existence of different perspectives on such objects in different parts of Oscar and its community, we should probably deprecate the current shorthands and not introduce shorthands for Hirzebruch and DelPezzo surfaces. What do you think? |
As pointed out by @micjoswig in #3996, for the current constructor
hirzebruch_surface(::Type{NormalToricVariety}, r::Int)
, the first argument is currently obsolete. This PR introduces a shorthandhirzebruch_surface(r::Int)
.A similar situation exists for
del_pezzo_surface
, and I have taken the liberty to propose a similar short hand.We also have the following specialized constructors:
affine_space(::Type{NormalToricVariety}, var_names::AbstractVector{<:VarName})
affine_space(::Type{NormalToricVariety}, d::Int)
projective_space(::Type{NormalToricVariety}, d::Int)
weighted_projective_space(::Type{NormalToricVariety}, w::Vector{T}) where {T <: IntegerUnion}
I could not find instances, where those constructors are called with a first argument different from
NormalToricVariety
. (But of course, I could have overlooked those instances...) In #3996, I was therefore carried away to propose short hands for all of these constructors. This is (at least not yet) done in this PR, as this seems to require discussion and so I removed this proposed change after being alerted to this by @lgoettgens .This PR aims to clarify the situation and to resolve it.