Changes between Initial Version and Version 9 of Ticket #20087


Ignore:
Timestamp:
03/31/16 12:51:36 (6 years ago)
Author:
jsrn
Comment:

This issue is not a show-stopper: instead of __call__ simply aliasing self.encode, it is a proper method which checks its input. If the input is a codeword, it returns that unchanged. If the input has the correct length of a message, return the encoded codeword, via self.encode. Otherwise, throw a ValueError.

Re-opening.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20087

    • Property Status changed from new to needs_work
    • Property Authors changed from to David Lucas
    • Property Summary changed from `E(message)` for a linear code encoder `E` should encode `message` to `__call__(message)` on a linear code or encoder should return a codeword.
    • Property Branch changed from to u/dlucas/shortcut_to_encode
    • Property Milestone changed from sage-7.1 to sage-7.2
    • Property Keywords beginner added
    • Property Commit changed from to de7193894303ef9945d1f152b80cb46b9987affc
  • Ticket #20087 – Description

    initial v9  
    1 If `E` is an `Encoder` for a `LinearCode`, one can use `E.encode(message)`, where `message` is in the appropriate space. `E(message)` should default to the same behaviour.
     1If `E` is an `Encoder` for a `LinearCode` `C`, one can use `E.encode(message)`, where `message` is in the appropriate space. `E(message)` should default to the same behaviour. So should `C(message)`.
     2
     3Be aware that the category framework specifies that `C(c) = c` if `c in C`. This needs to be handled.