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

Commit 857da5c

Browse files
author
David Lucas
committed
Small fixes to structures_in_coding_theory.rst
1 parent 5cd62cb commit 857da5c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/doc/en/thematic_tutorials/structures_in_coding_theory.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,10 @@ Summary of the implementation for encoders
274274
4. Implement ``__eq__``
275275
5. ``__ne__``, ``code`` come with the abstract class.
276276
6. If a generator matrix is known, override ``generator_matrix``.
277-
7. Else override ``encode``, ``unencode_nocheck`` and if needed
277+
278+
Else override ``encode``, ``unencode_nocheck`` and if needed
278279
``message_space``.
279-
8. Add the encoder to ``CodeClass._registered_encoders``.
280+
7. Add the encoder to ``CodeClass._registered_encoders``.
280281

281282

282283
IV. Write a new decoder class
@@ -370,7 +371,7 @@ which we override::
370371
sage: def decoding_radius(self):
371372
....: return (self.code().length()-1) // 2
372373

373-
As for some cases, the decoding might not be precisely known, its
374+
As for some cases, the decoding radius might not be precisely known, its
374375
implementation is not mandatory in :class:`sage.coding.decoder.Decoder`'s
375376
subclasses.
376377

@@ -393,6 +394,7 @@ Also put this line to set ``decoder_type``::
393394
``self._registered_decoders["DecName"] = MyGenericDecoder``.
394395
This will make it immediately available to any code
395396
class which inherits from `AbstractLinearCode`.
397+
See lines 807-812 in ``sage.coding.linear_code.py``.
396398

397399
Summary of the implementation for decoders
398400
------------------------------------------

0 commit comments

Comments
 (0)