-
-
Notifications
You must be signed in to change notification settings - Fork 567
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
refactor multiple zeta values #34562
Comments
New commits:
|
Commit: |
Branch: u/chapoton/34562 |
comment:2
Some quick comments about the
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:5
Hello, thanks a lot for the suggestions !
ok, done by removing the wrong alias that I had added.
well, the difficulty is that it only makes sense for homogeneous elements, and the usual "from_vector" methods does not take the degree as input
I substituted that for NN and it works fine.
I would rather keep "str_to_index" as an independant auxiliary function. Why is it problematic to have Indices at the module level ? oh, I guess it will have to be initiated when the module is loaded..
Not sure how to achieve "words of any length in odd integers at least 3 with sum n" using the existing tools. And speed generally matters in this file, indeed.
I have not yet checked that last suggestion. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
Replying to Frédéric Chapoton:
Thank you for all your work on Sage.
I see. This breaks the
Subsequently it effectively gets nailed in memory. It's fairly lightweight (and only one of them), so its not a problem, but it still is something that gets carried around. Also, you shouldn't need to set
If speed matters, then perhaps we should just Cythonize the file. It would allow you to replace the Perhaps iterating over the indices is not such an important operation for speed. Although it might be best to use lightweight classes (e.g., def shuffle(t1, t2):
n1 = len(t1)
n2 = len(t2)
for iv in IntegerVectors(n1, n1 + n2, max_part=1): # can probably even make this iterator smarter
it1 = iter(t1)
it2 = iter(t2)
yield tuple([next(it1) if v else next(it2) for v in iv])
Your changes look like they should be faster. Even more so if we can make the indices involve less transient objects and/or checks. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:14
I guess it is now ready for review again. |
comment:15
maybe one should simplify (in F_algebra) the double method "gen" versus "custom_gen" ? |
comment:16
It does look a bit weird to have both |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:18
So I have removed the previous method "gen" (rather useless and not natural) and renamed "custom_gen" to "gen". |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:20
Thank you. Do we want to use I think other than that, I would be happy to set a positive review (unless there are other changes you want to make). |
comment:21
Well, I want to exclude 0. No idea what nonnegative means, as always. |
comment:22
Ah, right. Duh. Then how about |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:24
Indeed, now using I think I have no further changes to make. |
Reviewer: Travis Scrimshaw |
comment:25
Thanks. LGTM. |
Changed branch from u/chapoton/34562 to |
This ticket mainly aims to separate the auxiliary F-algebra in another file.
This file implements a better custom-made F-algebra, with additional useful methods.
CC: @videlec @tscrim
Component: number theory
Author: Frédéric Chapoton
Branch/Commit:
8a8cdf3
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/34562
The text was updated successfully, but these errors were encountered: