#18099: Prepare linear_code for inheritance
-------------------------------------+-------------------------------------
       Reporter:  dlucas             |        Owner:
           Type:  enhancement        |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.6
      Component:  coding theory      |   Resolution:
       Keywords:  sd66               |    Merged in:
        Authors:  David Lucas        |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/dlucas/prepare_linear_code_for_inheritance|  
6fc5eb18f749e4ee36af0203e22d13a67e2a5fe4
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by dlucas):

 Hello,

 Here is what I did:

 - as Vincent suggested, `generator_matrix()` is now an abstract method
 (returns `NotYetImplemented`) in `AbstractLinearCode`. I set an
 implementation of it in `LinearCode`, and I changed the docstring of the
 abstract class accordingly.

 - as
 {{{
 self.Element = type(facade_for.an_element())
 }}}
   seemed harmless to removed (tested with the `TestSuite().run` method
 presented in the category tutorial) I killed it.

 - I actually removed `_gens` parameter from `LinearCode` and removed the
 related part in `gens()` method, so duplicated cache anymore.

 - However, I did not inherit from `FreeModule_submodule_field` because as
 far as I understand, it forces us to set the generator matrix as a class
 attribute, which is something we really do not want to do.

--
Ticket URL: <http://trac.sagemath.org/ticket/18099#comment:28>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to