Opened 6 years ago

Last modified 6 years ago

#20198 closed enhancement

`LinearCode(C)` for some code `C` should construct a code — at Version 1

Reported by: jsrn Owned by:
Priority: major Milestone: sage-7.1
Component: coding theory Keywords: linear code, beginner
Cc: dlucas Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by jsrn)

With the recent sub-classing framework for linear codes, it is now often useful to recast a code from some family as a generic linear code, thus forgetting its structure, e.g.

sage: C = codes.GeneralizedReedSolomonCode(GF(23).list(), 12)
sage: Chan = channels.StaticErrorRateChannel(GF(23)^7, 2)
sage: %timeit C.decode(Chan(C.random_element()))
<some short time>
sage: C_dumb = LinearCode(C)
sage: %timeit C_dumb.decode(Chan(C_dumb.random_element()))
<loong time>

Except the above code doesn't work, since LinearCode expects a matrix, and can't understand a code as input.

Change History (1)

comment:1 Changed 6 years ago by jsrn

  • Description modified (diff)
Note: See TracTickets for help on using tickets.