#11589: faster zero matrix creation
------------------------------+---------------------------------------------
   Reporter:  malb            |          Owner:  jason, was                 
       Type:  enhancement     |         Status:  needs_review               
   Priority:  major           |      Milestone:  sage-4.7.2                 
  Component:  linear algebra  |       Keywords:                             
Work_issues:                  |       Upstream:  N/A                        
   Reviewer:                  |         Author:  Martin Albrecht, Simon King
     Merged:                  |   Dependencies:                             
------------------------------+---------------------------------------------

Comment(by SimonKing):

 Replying to [comment:9 SimonKing]:
 > I recall that in some arithmetic routines of matrices, zero matrices are
 created at the beginning. I am not sure whether that is done "the official
 way" or by ''always'' copying a zero matrix, but I think it was the
 latter. That might be worth while to fix as well.

 I found it. It is the `_multiply_strassen` method in `matrix2.pyx`, which
 says:
 {{{
         if self.is_sparse():
             output = self.matrix_space(self._nrows, right._ncols, sparse =
 True)(0)
         else:
             output = self.matrix_space(self._nrows, right._ncols, sparse =
 False).zero_matrix().__copy__()
 }}}

 I think that ought to be improved, but that would better be on another
 ticket.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11589#comment:14>
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