__contains__ method for concatenated code
Issue #98
resolved
For now, __contains__
is not implemented for concatenated codes.
So c in C
(with c
a codeword, and C
a concatenated code) relies on default implementation which uses the generator matrix... Which does not exists (for now) in concatenated codes!
Comments (4)
-
reporter -
reporter - edited description
-
reporter - changed status to resolved
Now
ConcatenatedCode.generator_matrix
exists. -
We keep thinking of concatenated codes being huge and would like to avoid building the generator matrix except if the user really asks for it. Membership of a concatenated code can be decided by membership of the constituent codes. If
unencode
was written in the right way,__contains__
could just call this function, and ifunencode
did not throw an exception, it returnsTrue
. - Log in to comment
Implemented unencode method for EncoderConcatenatedCodeOuterField. Known issue : does not work if called by code.unencode(word) (see issue
#98)→ <<cset 68c07e8a95f5>>