#20470: Conversion of sparse to dense matrices over F2 is unspeakably slow
-------------------------------------------------+-------------------------
       Reporter:  kedlaya                        |        Owner:
           Type:  defect                         |       Status:  new
       Priority:  major                          |    Milestone:  sage-7.2
      Component:  linear algebra                 |   Resolution:
       Keywords:  sparse matrices, dense         |    Merged in:
  matrices                                       |    Reviewers:
        Authors:                                 |  Work issues:
Report Upstream:  N/A                            |       Commit:
         Branch:                                 |     Stopgaps:
   Dependencies:                                 |
-------------------------------------------------+-------------------------

Comment (by jhpalmieri):

 I think the culprit is the `matrix` method for the `MatrixSpace` class:
 when you do `M2(...)`, it runs the `__call__` method, which does this:
 {{{
         return self.matrix(entries, coerce, copy)
 }}}
 Then the `matrix` method does this, if the input `x` is a matrix with the
 right size:
 {{{
 x = x.list()  # this is the slow part
 ...
 x = list_to_dict(x, m, n)
 }}}
 So it should instead call `dense_matrix`.

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