-
Notifications
You must be signed in to change notification settings - Fork 126
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
Dimension of an ideal #4244
base: master
Are you sure you want to change the base?
Dimension of an ideal #4244
Conversation
Co-authored-by: Lars Göttgens <lars.goettgens@gmail.com>
@@ -1884,8 +1884,13 @@ julia> dim(I) | |||
if I.dim > -1 | |||
return I.dim | |||
end | |||
is_one(I) && return -1 # Catch a boundary case |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe stupid question: if I remember correctly, this is_one call already computes a groebner basis (possibly via singular). Wouldn't it then be more efficient to use this knowledge in Singular.dimension? Or does AlgebraicSolving.dimension make use of that as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, is_one()
computes a GB via Singular. I will work on this tomorrow, there is more that can be optimized, e.g. caching GBs.
Let me put this in draft mode, we first need to have #4246 and some discussions on default options before it makes sense to optimize this. |
Allows AlgebraicSolving to compute the dimension of an ideal, if applicable.