-
Notifications
You must be signed in to change notification settings - Fork 123
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
Hilbert series integration #2698
Hilbert series integration #2698
Conversation
…scar.jl into Hilbert_series_integration
…scar.jl into Hilbert_series_integration
…scar.jl into Hilbert_series_integration
…eaning in the ideal code
…scar.jl into Hilbert_series_integration
src/Rings/hilbert.jl
Outdated
catch _ | ||
# solve_non_negative must have thrown because there is a non-zero soln | ||
error("given weights permit infinite dimensional homogeneous spaces") | ||
end |
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.
The catched error should be checked against the "expected" error and rethrown otherwise.
(The function could also throw, because your input is garbage or the interface changed or ...)
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.
Corrected! Thanks for pointing that out. Anyway that code is obsolescent - hopefully is_positively_graded
is better written.
@HechtiDerLachs (and perhaps also @wdecker ) can you have a look at this? Shall we merge it (perhaps up to the minor tweaks I suggested)? |
And just to clarify: does this resolve issue #2674 ? |
@fingolfin The crucial part is marked # !!!OBSOLESCENT!!! in Oscar.jl/src/Rings/hilbert.jl. This should be removed and be replaced by the already updated |
I still get the following: x, y) = graded_polynomial_ring(QQ, ["x", "y"], [1, -1])
(Graded multivariate polynomial ring in 2 variables over QQ, MPolyDecRingElem{QQFieldElem, QQMPolyRingElem}[x, y])
julia> is_positively_graded(R)
true That's not what's supposed to happen, is it? Should I really try to fix something already? |
Currently tests fail. Probably due to the bug described above. |
I will take a look |
@HechtiDerLachs There is an unmotivated |
No, I think if the comment prior to that method is correct, then the break is fine. Earlier zero entries are caught by the |
Ooops, the whole |
Sorry @JohnAAbbott, the mistake is on my side, your matrix is the transpose of mine. Things will be changed correspondingly. |
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.
Looks fine from my side now.
Co-authored-by: Matthias Zach <85350711+HechtiDerLachs@users.noreply.github.com>
Minor revisions (see also discussion #2674)