@@ -274,9 +274,10 @@ Summary of the implementation for encoders
274
274
4. Implement ``__eq__ ``
275
275
5. ``__ne__ ``, ``code `` come with the abstract class.
276
276
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
278
279
``message_space ``.
279
- 8 . Add the encoder to ``CodeClass._registered_encoders ``.
280
+ 7 . Add the encoder to ``CodeClass._registered_encoders ``.
280
281
281
282
282
283
IV. Write a new decoder class
@@ -370,7 +371,7 @@ which we override::
370
371
sage: def decoding_radius(self):
371
372
....: return (self.code().length()-1) // 2
372
373
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
374
375
implementation is not mandatory in :class: `sage.coding.decoder.Decoder `'s
375
376
subclasses.
376
377
@@ -393,6 +394,7 @@ Also put this line to set ``decoder_type``::
393
394
``self._registered_decoders["DecName"] = MyGenericDecoder ``.
394
395
This will make it immediately available to any code
395
396
class which inherits from `AbstractLinearCode `.
397
+ See lines 807-812 in ``sage.coding.linear_code.py ``.
396
398
397
399
Summary of the implementation for decoders
398
400
------------------------------------------
0 commit comments