You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 30, 2023. It is now read-only.
Decoder of Subfield subcode over Finite Field in a of size 2^2 coming from [13, 5, 9] Generalized Reed-Solomon Code over Finite Field in aa of size 2^4 through Gao decoder for [13, 5, 9] Generalized Reed-Solomon Code over Finite Field in aa of size 2^4
sage: C = codes.RandomLinearCode(7, 3, GF(16, 'aa'))
331
+
sage: C = codes.GeneralizedReedSolomonCode(GF(16, 'aa').list()[:13], 5)
309
332
sage: Cs = codes.SubfieldSubcode(C, GF(4, 'a'))
310
333
sage: D = codes.decoders.SubfieldSubcodeOriginalCodeDecoder(Cs)
311
334
sage: D
312
-
335
+
Decoder of Subfield subcode over Finite Field in a of size 2^2 coming from [13, 5, 9] Generalized Reed-Solomon Code over Finite Field in aa of size 2^4 through Gao decoder for [13, 5, 9] Generalized Reed-Solomon Code over Finite Field in aa of size 2^4
313
336
"""
314
337
return"Decoder of %s through %s"% (self.code(), self.original_decoder())
315
338
@@ -319,13 +342,13 @@ def _latex_(self):
319
342
320
343
EXAMPLES::
321
344
322
-
sage: C = codes.RandomLinearCode(7, 3, GF(16, 'aa'))
345
+
sage: C = codes.GeneralizedReedSolomonCode(GF(16, 'aa').list()[:13], 5)
323
346
sage: Cs = codes.SubfieldSubcode(C, GF(4, 'a'))
324
347
sage: D = codes.decoders.SubfieldSubcodeOriginalCodeDecoder(Cs)
325
348
sage: latex(D)
326
-
349
+
\textnormal{Decoder of Subfield subcode over Finite Field in a of size 2^2 coming from [13, 5, 9] Generalized Reed-Solomon Code over Finite Field in aa of size 2^4 through } Gao decoder for [13, 5, 9] Generalized Reed-Solomon Code over Finite Field in aa of size 2^4
327
350
"""
328
-
return"\\textnormal{Decoder of } %s \\textnormal{ through } %s"% (self.code(), self.original_decoder())
351
+
return"\\textnormal{Decoder of %s through } %s"% (self.code(), self.original_decoder())
329
352
330
353
deforiginal_decoder(self):
331
354
r"""
@@ -334,11 +357,11 @@ def original_decoder(self):
334
357
335
358
EXAMPLES::
336
359
337
-
sage: C = codes.RandomLinearCode(7, 3, GF(16, 'aa'))
360
+
sage: C = codes.GeneralizedReedSolomonCode(GF(16, 'aa').list()[:13], 5)
338
361
sage: Cs = codes.SubfieldSubcode(C, GF(4, 'a'))
339
362
sage: D = codes.decoders.SubfieldSubcodeOriginalCodeDecoder(Cs)
340
363
sage: D.original_decoder()
341
-
Syndrome decoder for Linear code of length 7, dimension 3 over Finite Field in aa of size 16
364
+
Gao decoder for [13, 5, 9] Generalized Reed-Solomon Code over Finite Field in aa of size 2^4
342
365
"""
343
366
returnself._original_decoder
344
367
@@ -353,10 +376,8 @@ def decode_to_code(self, y):
353
376
sage: D = codes.decoders.SubfieldSubcodeOriginalCodeDecoder(Cs)
354
377
sage: F = Cs.base_field()
355
378
sage: a = F.gen()
356
-
sage: c = vector(F, (a + 1, a, a + 1, 1, 1, a, 1,
357
-
a + 1, 0, 0, 1, 0, a + 1))
358
-
sage: y = vector(F, (a + 1, a, a + 1, a, 1, a, 0,
359
-
0, 0, 0, 1, 0, 1))
379
+
sage: c = vector(F, (a + 1, a, a + 1, 1, 1, a, 1, a + 1, 0, 0, 1, 0, a + 1))
380
+
sage: y = vector(F, (a + 1, a, a + 1, a, 1, a, 0, 0, 0, 0, 1, 0, 1))
360
381
sage: D.decode_to_code(y) == c
361
382
True
362
383
@@ -375,10 +396,11 @@ def decoding_radius(self):
375
396
376
397
EXAMPLES::
377
398
378
-
sage: C = codes.RandomLinearCode(7, 3, GF(16, 'aa'))
399
+
sage: C = codes.GeneralizedReedSolomonCode(GF(16, 'aa').list()[:13], 5)
379
400
sage: Cs = codes.SubfieldSubcode(C, GF(4, 'a'))
380
401
sage: D = codes.decoders.SubfieldSubcodeOriginalCodeDecoder(Cs)
0 commit comments