-
Notifications
You must be signed in to change notification settings - Fork 137
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
toric_ideal(pts::ZZMatrix)
is (often) very inefficient
#4685
Comments
I think the problem is caused by the following lines: Oscar.jl/src/AlgebraicGeometry/ToricVarieties/NormalToricVarieties/toric_ideal.jl Lines 108 to 110 in c0fcef9
Because the kernel is computed over
@HereAround Is a the kernel over |
Thank you @imkhln for pointing this out to us. (Also, apologies for my slow response.) @lkastner will work on improving the toric ideal computation along the lines you suggested. |
Computing the toric ideal of a tuple of lattice points directly as a homomorphism kernel is much faster than applying
toric_ideal
to the respective integer matrix. In virtually all cases that are not too small. A random example with 7 points in dimension 2:runs almost instantly but a subsequent call of
toric_ideal(matrix(ZZ, A))
does not terminate after several minutes. And this happens for all randomly generated examples with the same or larger parameters. (AFAIK, these two calls should output the same ideal, and in small cases where both work fast this is indeed the case.)This was tested in Oscar 1.3.0 and also in some of the older versions, probably not a recently introduced issue.
The text was updated successfully, but these errors were encountered: