#13949: Make mutability on matrices a simple bint flag
----------------------------------+-----------------------------------------
       Reporter:  nbruin          |         Owner:  jason, was
           Type:  enhancement     |        Status:  new       
       Priority:  major           |     Milestone:  sage-5.6  
      Component:  linear algebra  |    Resolution:            
       Keywords:                  |   Work issues:            
Report Upstream:  N/A             |     Reviewers:            
        Authors:                  |     Merged in:            
   Dependencies:                  |      Stopgaps:            
----------------------------------+-----------------------------------------

Comment (by nbruin):

 Patch attached to avoid calling `__init__` in
 `Matrix_integer_dense.__cinit__`. This routine chooses to already set
 `_parent` (that's easy because that should be a parameter anyway! note
 that other classes sometimes get called with `__new__` and `parent=NULL`),
 setting base ring is easy. This class also needs `nrows` and `ncols` set
 in `__cinit__` already, but unfortunately the only way to get that
 information is via an expensive method call on the parent. This is no
 worse than happened before, though, because previously this happened in
 `__init__`. The present patch should give a very modest speedup, but
 mostly it means the code is a little cleaner.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13949#comment:7>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to