-
-
Notifications
You must be signed in to change notification settings - Fork 568
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 divides() better #25277
Comments
Commit: |
Author: Vincent Delecroix |
Branch: u/vdelecroix/25277 |
comment:3
IMO, it is better to do - S = tester.some_elements()
- for a in S:
- for b in S:
+ for a,b in tester.some_elements(repeat=2): as then it runs |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:5
Replying to @tscrim:
good suggestion! |
comment:6
though some rings are not ready for that yet...
|
comment:8
This ticket fixes several problem with the divides method First of all, a custom one is implemented on zmod rings
(see the relevant discussion on sage-devel). Secondly, make divides return Finally, test this with a test method. |
comment:12
"that" meant "the extra _test_divides" included in this ticket. |
comment:13
But I managed to find a solution with the latest commits. |
comment:14
Thank you. Yep, I see the difference. So the only thing that I am unsure of are these sorts of doctest changes: sage: subspace.change_ring(CC)
- Subspace of dimension 2 of ModularForms(n=6, k=20, ep=1) over Complex Field with 53 bits of precision
+ Traceback (most recent call last):
+ ...
+ NotImplementedError I would prefer someone who understands this code to see if they agree with these changes or not. |
comment:15
Replying to @tscrim:
There is nowhere a modular form with coefficients in CC that is constructed. And for a good reason: it would be completely broken (because it does use the |
comment:16
Replying to @videlec:
Thank you for the explanation. If they are bogus tests, then why not remove them altogether? I also am not sure I like the inconsistency with
(this was tested on vanilla). |
comment:17
What is the relation with #25278? |
comment:18
I am happy removing the tests. Will do it.
What kind of consistency would you require with |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Reviewer: Travis Scrimshaw |
comment:21
Replying to @videlec:
Thank you.
I was mostly trying to compare |
Changed branch from u/vdelecroix/25277 to |
See the relevant discussion on sage-devel.
Component: basic arithmetic
Author: Vincent Delecroix
Branch/Commit:
4a6cbd7
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/25277
The text was updated successfully, but these errors were encountered: