Should Encoder default to vector behaviour?

Issue #66 resolved
Johan Rosenkilde created an issue

Right now, it is rather tedious to write an Encoder: one needs to define encode, unencode, message_space, and generator_matrix.

We could take the stand that most encoders will be vector-based. If we did so, there could be standard implementations of encode, unencode, and message_space, and subclasses have only to implement generator_matrix.

This doesn't reduce flexibility, since if you have a different message space, e.g. F[x], then you just override all these default implementaitons.

Comments (4)

  1. Johan Rosenkilde reporter

    Also, generator_matrix makes no sense for encoders whise message space is not F^k. So in that design sense, we already defaulted somewhat to vector behaviour.

  2. David Lucas repo owner
    • changed status to open

    Problem with auto-resolve system in Bitbucket : partially resolved is understood as resolved... So, partially resolved in bceaa34

  3. Log in to comment