-
-
Notifications
You must be signed in to change notification settings - Fork 514
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
Classes for Reed Muller Codes #20705
Comments
Replying to @sagetrac-panda314:
New commits:
|
Commit: |
This comment has been minimized.
This comment has been minimized.
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:9
Hello, I started reading your code.
can be written like this:
but it should always be like this:
I'll run tests this afternoon and probably come back with more comments on the code itself. Best, David |
comment:10
Disclaimer: the following remarks are only related to the code in itsef. I did not run (yet) extensive tests on border cases and larger cases than the ones covered by doctests. General remark on exceptions: don't need to write "Incorrect data-type ..." every time, as Another remark on documentation: you have to add this module to binomial_sum I think it might be better to make it a private method (which can be done by calling it _binomial_sum). You could have used already implemented methods, ending up with something like:
BUT it's much slower than you implementation (up to a factor of 10 according to multivariate_polynomial_interpolation I'd make it a private method as it's only used internally as a helper. I'd also rename some variables: ReedMullerCode
General remark on classes
QAry/BinaryReedMullerCode
Vectorial encoder
will kill you. For example, over Same for
Best, David |
comment:11
Thanks. I have started implementing some of the changes you have suggested. Regarding private functions. I had not added examples for them because doctest would not be able to execute them since i had not listed them anywhere. Will writing them as _ solve that? Replying to @sagetrac-dlucas:
|
comment:12
Cool!
Not that I know, I'm afraid. I'm not using any IDE but vim, so I can't be sure though.
Actually, doctests will be executed. Making these methods private with Best, David |
comment:13
Hey, so correct me if i am wrong, [x for x in base_field_tuple] is implicitly implemented using iterator. If that's so i think the following implementation should get rid all the redundant iterations through the sets. exponent=exponents.first() matrix_list.append([reduce(mul, [x[i] for i in exponent],1) for x in base_field_tuple]) Replying to @sagetrac-dlucas:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:15
Yes, absolutely. I'm reading your modified code, I'll come back with more comments later on. |
comment:16
Hello, Some more comments:
|
Changed branch from u/dlucas/classes_for_reed_muller_codes to u/panda314/classes_for_reed_muller_codes |
comment:42
Hi, New commits:
|
comment:43
Please be patient :-) And for the record: when you push some commits to reply to a reviewer's concerns, please comment on your commit. At the very least, write something like "I fixed all the things you asked for. Ready for review again" or something. I probably won't have time to go over it today. If David has time and is happy with your modifications to my comments, I'm sure that's fine. |
Changed reviewer from David Lucas to David Lucas, Johan S. R. Nielsen |
Changed branch from u/panda314/classes_for_reed_muller_codes to u/dlucas/classes_for_reed_muller_codes |
comment:45
Hello, It seems that my comment did not appear - sorry about that. I fixed some small doc issues, rewrote a few docstrings, and removed a duplicated If you're fine with my changes, you can give a positive review, everything is fine on my side. Once again, well done with these codes :) David New commits:
|
comment:46
Replying to @sagetrac-dlucas:
|
comment:47
Then set it to positive_review as David coefficient said. |
comment:49
Merge conflict, please merge in next beta. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:51
Done, ticket open for review. David |
comment:52
Replying to @sagetrac-dlucas:
Seems fine. Tests passed.
|
comment:53
Cool! Can you please set it to |
Changed branch from u/dlucas/classes_for_reed_muller_codes to |
Changed commit from |
Changed reviewer from David Lucas, Johan S. R. Nielsen to David Lucas, Johan Sebastian Rosenkilde Nielsen |
This ticket proposes a implementation of Reed Muller Codes. It contains:
two new code classes, QAryReedMullerCode and BinaryReedMullerCode, which implements the two classes of reed muller codes
two encoder classes, ReedMullerVectorEncoder and ReedMullerPolynomialEncoder which are used by both the code classes
some additional functions to assist in computations related to the polynomials.
NOTE: Both the classes are implemented separately since they would have different decoders
I used the following code snippets to test them,
The output of which was,
This gave the output as:
CC: @sagetrac-dlucas @johanrosenkilde @jlavauzelle
Component: coding theory
Author: Parthasarathi Panda
Branch:
3cce07f
Reviewer: David Lucas, Johan Sebastian Rosenkilde Nielsen
Issue created by migration from https://trac.sagemath.org/ticket/20705
The text was updated successfully, but these errors were encountered: