#20198: `LinearCode(C)` for some code `C` should construct a code
-------------------------------------+-------------------------------------
       Reporter:  jsrn               |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-7.1
      Component:  coding theory      |   Resolution:
       Keywords:  linear code,       |    Merged in:
  beginner                           |    Reviewers:
        Authors:  Charles Prior      |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  84c1e39a4450f95d2c96ad9d6dbcf6bf80cec089
  u/cprior/_linearcode_c___for_some_code__c__should_construct_a_code|     
Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by cprior):

 Note that the provided example (ignoring the part relating to the
 requested functionality) never worked. We have:

 {{{
 sage: C = codes.GeneralizedReedSolomonCode(GF(23).list(), 12)
 sage: Chan = channels.StaticErrorRateChannel(GF(23)^7, 2)
 sage: %timeit C.decode(Chan(C.random_element()))
 Traceback (most recent call last)
 ...
 TypeError: Message must be an element of the input space for the given
 channel
 }}}

 Perhaps you meant something more like this?

 {{{
 sage: C = codes.GeneralizedReedSolomonCode(GF(23).list(), 12)
 sage: Chan = channels.StaticErrorRateChannel(GF(23)^23, 2)
 sage: C.decode_to_code(Chan(C.random_element())) # using the superseding
 decode_to_code function
 (10, 17, 5, 20, 9, 1, 3, 18, 8, 20, 13, 5, 20, 16, 12, 22, 18, 3, 13, 17,
 11, 11, 4) # random
 }}}

 This doesn't affect my patch, unless you were to use this example to test
 it.

--
Ticket URL: <http://trac.sagemath.org/ticket/20198#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to