-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
AbstractLinearCode.dimension() is wrong if _dimension
is not set
#21156
Comments
comment:1
I implemented a fix. |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:5
Added a note about the Otherwise good, setting positive review. New commits:
|
Reviewer: Johan Rosenkilde |
Author: Bruno Grenet |
Changed keywords from linear code to linear code, rd3 |
Changed branch from u/jsrn/abstractlinearcode_dimension___is_wrong_if___dimension__is_not_set to |
The current implementation of
AbstractLinearCode.dimension()
simply accessesself._dimension
. But there is no (longer a) requirement that this be set at construction time. The method should instead check if the special variable is set, and if it is not, compute the dimension as the number of rows in a generator matrix.CC: @sagetrac-dlucas
Component: coding theory
Keywords: linear code, rd3
Author: Bruno Grenet
Branch/Commit:
b72b705
Reviewer: Johan Rosenkilde
Issue created by migration from https://trac.sagemath.org/ticket/21156
The text was updated successfully, but these errors were encountered: