- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 571
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
make free_module_generic_pid also work for pid's other than integers #11751
Comments
comment:1
Attachment: 11751_free_module_generic_pid-fix.patch.gz |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:3
Changing the is into == is needed to make the example in the description work but in introduced some other strange bugs:
|
comment:4
A full output of the errors is shown in http://pastebin.com/4B4xmRDZ |
comment:5
It seems that the line |
comment:7
The patch looks good :). Didn't try it yet how it works with doctests and yet but at least the code looks reasonable. If this passes all test, then at least I want something like the following as a doctest:
Since if we are going to look at the parent of one specific element, then we certainly want that it depends in the right way of the other elements. A neater way to do this would be to actually store "coefficient_ring" in the parent, since I think that
Is way to many steps removed from parent to actually directly acces from the code. But this is just nitpicking. I'm now doctesting your patch. |
Attachment: trac_11751_free_module_generic_pid-review.patch.gz fixes the failing doctests |
comment:8
I added a new patch, since we should also fix sparse modules (they suffer from the exact same bug). Running doctests now. |
comment:9
All tests pass so this again needs a review for the added sparse code. |
This comment has been minimized.
This comment has been minimized.
Author: Maarten Derickx, Julian Rueth |
This comment has been minimized.
This comment has been minimized.
Reviewer: Maarten Derickx, Julian Rueth |
comment:12
the patches apply to 4.7.2.alpha2 and all doctests pass. |
comment:13
apply: 11751_free_module_generic_pid-fix.patch, trac_11751_free_module_generic_pid-review.patch and trac_11751_whitespace.patch |
This comment has been minimized.
This comment has been minimized.
Changed reviewer from Maarten Derickx, Julian Rueth to Julian Rueth, Maarten Derickx |
This comment has been minimized.
This comment has been minimized.
Merged: sage-4.7.2.alpha3 |
small review patch to fix some whitespace and doc issues |
comment:16
Attachment: trac_11751_whitespace.patch.gz I really don't like the way how this was fixed. First of all, why is this even a bug? If you need fractions, I think you should use the fraction field from the beginning. Second, it causes the computation of a basis(!) every time that I am working on initialization of vectors in #17561 and I would actually like to revert this fix and make
a |
comment:17
ok, I get it now. The issue is more complex than what the description shows. |
This comment has been minimized.
This comment has been minimized.
comment:18
Anyway, I'm fixing the |
Before this patch the following code would fail
Apply
to the Sage library.
Component: linear algebra
Author: Maarten Derickx, Julian Rueth
Reviewer: Julian Rueth, Maarten Derickx
Merged: sage-4.7.2.alpha3
Issue created by migration from https://trac.sagemath.org/ticket/11751
The text was updated successfully, but these errors were encountered: