-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
Add lift_centered for more classes #15804
Comments
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:3
I would write the global function
such that it always works on modular objects, even if |
comment:4
Are you thinking for instance?
So what you propose is that lift_centered should be always a class method and never explicitely computed using the global function, don't you? |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:6
In Python, it is better not to use Also, the normal syntax is |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
Fixed, I have also changed the documentation, I hope it is in better shape now. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:13
For the newly added docstrings, you should follow the format explained in http://www.sagemath.org/doc/developer/coding_basics.html#documentation-strings. Note that the |
comment:19
Ups, sorry, the docstring format was not good. I have fixed it. @videlec: After thinking about it, the global namespace is already too big. It should be used for essential functions only. And preferably those that are "classical" or have sense for an arbitrary Sage element. So, I have deleted the global function, the user should depend on the method of each class. |
comment:20
Couldn't you do some economy in
|
comment:21
Replying to @videlec:
I agree. |
Changed branch from u/lftabera/lift_centered to u/jdemeyer/lift_centered |
New commits:
|
Changed author from Luis Felipe Tabera Alonso to Luis Felipe Tabera Alonso, Jeroen Demeyer |
comment:24
This is good for me. |
Reviewer: Vincent Delecroix |
Changed branch from u/jdemeyer/lift_centered to |
This ticket is a split of #8558 for easier review and merging.
Add a lift_centered method to ntl_mod_p elements and a generic function.
If p is an integer mod n, returns r congruent to p mod n such that -n/2 < r <= n/2
It also deprecates the use of centerlift for lift_centered. The discussion is in #8558
Component: basic arithmetic
Keywords: modular arithmetic, centered lift
Author: Luis Felipe Tabera Alonso, Jeroen Demeyer
Branch/Commit:
c2255e5
Reviewer: Vincent Delecroix
Issue created by migration from https://trac.sagemath.org/ticket/15804
The text was updated successfully, but these errors were encountered: