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

Commit 93066b1

Browse files
author
David Lucas
committed
Fixed silly copy-paste mistake in ISD's decoder_type
1 parent 62468b9 commit 93066b1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/sage/coding/linear_code.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -3185,23 +3185,23 @@ def shortened(self, L):
31853185

31863186
def _spectrum_from_gap(self):
31873187
r"""
3188-
Returns the weight distribution of the associated code. Uses the C programs
3188+
Returns the weight distribution of the associated code. Uses the C programs
31893189
available in the kernel of GAP and thus is fairly fast.
3190-
3191-
The weight distribution of a code of length `n` is the sequence `A_0, A_1,..., A_n`
3190+
3191+
The weight distribution of a code of length `n` is the sequence `A_0, A_1,..., A_n`
31923192
where `A_i` is the number of codewords of weight `i` (0 <= i <= n).
3193-
3193+
31943194
OUTPUT:
31953195
- a vector of integers, the weight distribution of the code
3196-
3196+
31973197
EXAMPLES::
31983198
sage: from sage.interfaces.all import gap
31993199
sage: MS = MatrixSpace(GF(2),4,7)
32003200
sage: G = MS([[1,1,1,0,0,0,0],[1,0,0,1,1,0,0],[0,1,0,1,0,1,0],[1,1,0,1,0,0,1]])
32013201
sage: C = LinearCode(G)
32023202
sage: C._spectrum_from_gap()
32033203
[1, 0, 0, 7, 7, 0, 0, 1]
3204-
3204+
32053205
AUTHORS:
32063206
32073207
- David Joyner (2005-11)
@@ -4891,4 +4891,4 @@ def number_errors(self):
48914891
LinearCode._registered_decoders["NearestNeighbor"] = LinearCodeNearestNeighborDecoder
48924892
LinearCodeNearestNeighborDecoder._decoder_type = {"hard-decision", "unique", "always-succeed", "complete"}
48934893
LinearCode._registered_decoders["InformationSet"] = LinearCodeInformationSetDecoder
4894-
LinearCodeNearestNeighborDecoder._decoder_type = {"hard-decision", "unique", "might-fail", "might-error", "complete"}
4894+
LinearCodeInformationSetDecoder._decoder_type = {"hard-decision", "unique", "might-fail", "might-error", "complete"}

0 commit comments

Comments
 (0)