This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove relative_finite_field_extension
- Loading branch information
Showing
6 changed files
with
70 additions
and
627 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,24 +11,6 @@ | |
codewords `c(x) \in F[x]` satisfy `c(\alpha^{a}) = 0`, for all integers `a` in | ||
the arithmetic sequence `b, b + \ell, b + 2 \times \ell, \dots, b + (\delta - | ||
2) \times \ell`. | ||
TESTS: | ||
This class uses the following experimental feature: | ||
:class:`sage.coding.relative_finite_field_extension.RelativeFiniteFieldExtension`. | ||
This test block is here only to trigger the experimental warning so it does not | ||
interferes with doctests:: | ||
sage: from sage.coding.relative_finite_field_extension import * | ||
sage: Fqm.<aa> = GF(16) | ||
sage: Fq.<a> = GF(4) | ||
sage: RelativeFiniteFieldExtension(Fqm, Fq) | ||
doctest:...: FutureWarning: This class/method/function is marked as | ||
experimental. It, its functionality or its interface might change without a | ||
formal deprecation. | ||
See http://trac.sagemath.org/20284 for details. | ||
Relative field extension between Finite Field in aa of size 2^4 and Finite | ||
Field in a of size 2^2 | ||
""" | ||
# ***************************************************************************** | ||
# Copyright (C) 2016 David Lucas <[email protected]> | ||
|
@@ -411,9 +393,8 @@ def bch_word_to_grs(self, c): | |
sage: y in D.grs_code() | ||
True | ||
""" | ||
mapping = self.code().field_embedding().embedding() | ||
a = map(mapping, c) | ||
return vector(a) | ||
phi = self.code().field_embedding() | ||
return vector([phi(x) for x in c]) | ||
|
||
def grs_word_to_bch(self, c): | ||
r""" | ||
|
@@ -431,9 +412,8 @@ def grs_word_to_bch(self, c): | |
(0, a, 1, a, 0, 1, 1, 1, a, 0, 0, a + 1, a, 0, 1) | ||
""" | ||
C = self.code() | ||
FE = C.field_embedding() | ||
a = map(FE.cast_into_relative_field, c) | ||
return vector(a) | ||
sec = C.field_embedding().section() | ||
return vector([sec(x) for x in c]) | ||
|
||
def decode_to_code(self, y): | ||
r""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.