Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Set this new decoder in other code families and in the catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lucas committed Feb 29, 2016
1 parent 884d8ab commit 351b30c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/sage/coding/decoders_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- :func:`linear_code.LinearCodeSyndromeDecoder <sage.coding.linear_code.LinearCodeSyndromeDecoder>`
- :func:`linear_code.LinearCodeNearestNeighborDecoder <sage.coding.linear_code.LinearCodeNearestNeighborDecoder>`
- :class:`linear_code.LinearCodeInformationSetDecoder <sage.coding.linear_code.LinearCodeInformationSetDecoder>`
**Generalized Reed-Solomon code decoders**
Expand All @@ -28,5 +29,7 @@
# http://www.gnu.org/licenses/
#*****************************************************************************

from linear_code import (LinearCodeSyndromeDecoder, LinearCodeNearestNeighborDecoder)
from linear_code import (LinearCodeSyndromeDecoder,
LinearCodeNearestNeighborDecoder,
LinearCodeInformationSetDecoder)
from guruswami_sudan.gs_decoder import GRSGuruswamiSudanDecoder
4 changes: 3 additions & 1 deletion src/sage/coding/grs.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
from copy import copy
from linear_code import (AbstractLinearCode,
LinearCodeSyndromeDecoder,
LinearCodeNearestNeighborDecoder)
LinearCodeNearestNeighborDecoder,
LinearCodeInformationSetDecoder)
from encoder import Encoder
from decoder import Decoder, DecodingError
from sage.rings.arith import xgcd
Expand Down Expand Up @@ -790,3 +791,4 @@ def message_space(self):

GeneralizedReedSolomonCode._registered_decoders["Syndrome"] = LinearCodeSyndromeDecoder
GeneralizedReedSolomonCode._registered_decoders["NearestNeighbor"] = LinearCodeNearestNeighborDecoder
GeneralizedReedSolomonCode._registered_decoders["InformationSet"] =LinearCodeInformationSetDecoder

0 comments on commit 351b30c

Please sign in to comment.