Update I.dim when dimension computed#96
Conversation
|
The tests failure does not come from my commits. They occur even when running tests on the current version of the repo on my computer. I suspect that the problem comes from the change of version of msolve and compatibility problem(s). |
|
I have updated the tests according to the output of the current binary of msolve 0.7.501. This also comes with an observation: in this test, with the previous version, some coordinates were 0 because the isolation intervals were of the form [-1/2^n, 1/2^n]. This is no longer the case with the new version. |
|
Many thanks. I will have a closer look asap. |
|
Thank you for your fast reply! This is clearer now. However, do you think it would be possible to accept this PR in the meantime? |
|
Commit [26035e0] is questionable, as one might want to store the information that an ideal has a positive dimension. |
|
I'm fine with this PR, let's see what @mohabsafey further wants to say. |
|
I have a few other (much more substantial) pending PRs to submit. |
|
Initially, the dimension field was only there to indicate if the ideal has dimenion <= 0. |
|
I think .dim could also have been used to indicate that the ideal is not proper if it is -1. However, there would be an ambiguity (to fix) since the default value of .dim is -1. Therefore, if we are not interested with this subtlety I'm fine with the .iszerodim option. Regarding the .dim attribute, I think it is still relevant without Hilbert series since we already have a dimension function written by @RafaelDavidMohr. |
|
What's about keeping |
|
After discussing with @mohabsafey, I chose to initialize Then, when dimension isn't known, isnothing(I.dim) is true. I also add some consistency tests. If you're ok, I'm fine with merging this PR. |
|
Many thanks. This is fine for me. If this is ok for @ederc, I merge it. |
|
Fine for me. |
No description provided.