-
Notifications
You must be signed in to change notification settings - Fork 235
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
Bug in isVeryAmple for simplicial normal toric varieties #3575
Comments
In my attempt to reproduce this error, it seems that the @mahrud: What is your local fix? |
I think you might be using an old version of M2 or your repository is outdated. To be precise, this is the error I get: i8 : isVeryAmple D -- throws error!
NormalToricVarieties/Divisors.m2:495:19:(2):[4]: error: no method found for applying numColumns to:
argument : null (of class Nothing)
NormalToricVarieties/Divisors.m2:495:19:(2):[4]: --entering debugger (type help to see debugger commands)
NormalToricVarieties/Divisors.m2:495:9-
495:21: --source code:
n := numColumns V; Which is because
First I thought I should add a check to return false if I can think of several options, for instance:
I'm not sure if either of these are particularly efficient in higher dimensions. Is there an easy way to find an effective divisor that is linearly equivalent to D? |
Indeed, I forgot to uninstall packages when I updated my version of Macaulay2. I now get the same error as you. 'V' should not be equal to |
This always confuses me: is effective a property of the toric divisor or the corresponding line bundle? I thought the package intentionally says this divisor is not effective because i11 : code methods isEffective
o11 = -- code for method: isEffective(ToricDivisor)
/home/mahrud/Projects/M2/research/M2/Macaulay2/packages/NormalToricVarieties/Divisors.m2:405:39-405:72: --source code:
isEffective ToricDivisor := Boolean => D -> all (entries D, i -> i >= 0) |
Testing whether the coefficients of a divisor are nonnegative isn't particularly useful. The more interesting feature is to determine whether a toric divisor is linearly equivalent to a divisor with nonnegative coefficients. The |
To be specific, should Depending on your answer, I can try to work on a solution and show you later. |
I think that we should change |
Here is an example, related to CLS Example 6.1.11:
This divisor is not very ample, but
2*D
should be.@ggsmith do you have a preferred fix, or should I make a pull request with my local fix?
The text was updated successfully, but these errors were encountered: