-
-
Notifications
You must be signed in to change notification settings - Fork 479
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
move ProductTree and prod_with_derivative() to sage.rings.generic #34791
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
I think |
comment:3
Currently |
comment:4
-1. I don't think it has so general use. But I would hear John. |
comment:5
First, especially if there might be expansions to |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
Replying to John Palmieri:
+1. In the Instead of The The paragraph |
comment:8
Thanks for the feedback, everyone. I'll work on the documentation. Replying to Kwankyu Lee:
But in Python "a list" is much more specific than "a sequence"! For example, a tuple is a sequence but not a list. Indeed, the Python documentation does have a concept of "sequence": https://docs.python.org/3/library/stdtypes.html#sequence-types-list-tuple-range
Are you suggesting to move it outside of the |
comment:9
Replying to Lorenz Panny:
Strictly speaking, you are right. But it is usual to say "a tuple of" or "a list of" when an input of any sequence type is allowed. I think it is rather unusual to say "a sequence of" for an input of a sequence type (it makes one to think twice). Again this is not a rule, but a suggestion of a style for uniformity.
To move it to the place of |
Reviewer: Kwankyu Lee |
comment:11
Replying to Kwankyu Lee:
I've seen "an iterable" used in documentation. That would be another option. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:13
Tweaked documentation according to your suggestions, and moved the code in question to a new file (I didn't remove the |
comment:14
Replying to Lorenz Panny:
Thanks. LGTM, though I am not completely happy with the overuse of One last thing. Please insert spaces around + X = [X[i//2] % V[i] for i in range(len(V))] You can set positive review for me. Thanks! |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:17
Thank you! (By the way, regarding the "list" vs. "iterable" question, writing |
This comment has been minimized.
This comment has been minimized.
comment:18
Replying to Lorenz Panny:
That is a good reason. Okay! |
Changed branch from public/move_product_tree_and_prod_with_derivatives to |
The class
ProductTree
and the functionprod_with_derivative()
were introduced in #34303. Both are fully generic in principle, but they remained inhom_velusqrt.py
in the heat of the moment.We should move them to a more suitable place; it seems
sage.rings.generic
is an appropriate choice. Slight tweaks toProductTree
while we're at it.CC: @jhpalmieri
Component: algebra
Author: Lorenz Panny
Branch/Commit:
c3dcb9b
Reviewer: Kwankyu Lee
Issue created by migration from https://trac.sagemath.org/ticket/34791
The text was updated successfully, but these errors were encountered: