summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen Demeyer <jdemeyer@cage.ugent.be>2018-07-22 09:54:00 +0200
committerJeroen Demeyer <jdemeyer@cage.ugent.be>2018-07-22 10:19:51 +0200
commit28a4212ce9b8479d305c850a2959a28e07c93b6e (patch)
treeb9402ed5c39ed5a7776c21e436f5492ef88248cb
parentUpdated SageMath version to 8.3.rc1 (diff)
Add a stopgap to DuadicCodeEvenPair/DuadicCodeOddPairu/jdemeyer/25379
-rw-r--r--src/sage/coding/code_constructions.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/sage/coding/code_constructions.py b/src/sage/coding/code_constructions.py
index e9cd3eb..2d50c9b 100644
--- a/src/sage/coding/code_constructions.py
+++ b/src/sage/coding/code_constructions.py
@@ -353,6 +353,9 @@ def DuadicCodeEvenPair(F,S1,S2):
([11, 5] Cyclic Code over GF(3),
[11, 5] Cyclic Code over GF(3))
"""
+ from sage.misc.stopgap import stopgap
+ stopgap("The function DuadicCodeEvenPair has several issues which may cause wrong results", 25896)
+
from .cyclic_code import CyclicCode
n = len(S1) + len(S2) + 1
if not _is_a_splitting(S1,S2,n):
@@ -400,6 +403,9 @@ def DuadicCodeOddPair(F,S1,S2):
This is consistent with Theorem 6.1.3 in [HP2003]_.
"""
+ from sage.misc.stopgap import stopgap
+ stopgap("The function DuadicCodeOddPair has several issues which may cause wrong results", 25896)
+
from .cyclic_code import CyclicCode
n = len(S1) + len(S2) + 1
if not _is_a_splitting(S1,S2,n):
@@ -553,13 +559,13 @@ def QuadraticResidueCodeEvenPair(n,F):
EXAMPLES::
- sage: codes.QuadraticResidueCodeEvenPair(17, GF(13))
+ sage: codes.QuadraticResidueCodeEvenPair(17, GF(13)) # known bug (#25896)
([17, 8] Cyclic Code over GF(13),
[17, 8] Cyclic Code over GF(13))
sage: codes.QuadraticResidueCodeEvenPair(17, GF(2))
([17, 8] Cyclic Code over GF(2),
[17, 8] Cyclic Code over GF(2))
- sage: codes.QuadraticResidueCodeEvenPair(13,GF(9,"z"))
+ sage: codes.QuadraticResidueCodeEvenPair(13,GF(9,"z")) # known bug (#25896)
([13, 6] Cyclic Code over GF(9),
[13, 6] Cyclic Code over GF(9))
sage: C1,C2 = codes.QuadraticResidueCodeEvenPair(7,GF(2))
@@ -617,13 +623,13 @@ def QuadraticResidueCodeOddPair(n,F):
EXAMPLES::
- sage: codes.QuadraticResidueCodeOddPair(17, GF(13))
+ sage: codes.QuadraticResidueCodeOddPair(17, GF(13)) # known bug (#25896)
([17, 9] Cyclic Code over GF(13),
[17, 9] Cyclic Code over GF(13))
sage: codes.QuadraticResidueCodeOddPair(17, GF(2))
([17, 9] Cyclic Code over GF(2),
[17, 9] Cyclic Code over GF(2))
- sage: codes.QuadraticResidueCodeOddPair(13, GF(9,"z"))
+ sage: codes.QuadraticResidueCodeOddPair(13, GF(9,"z")) # known bug (#25896)
([13, 7] Cyclic Code over GF(9),
[13, 7] Cyclic Code over GF(9))
sage: C1 = codes.QuadraticResidueCodeOddPair(17, GF(2))[1]