#13304: Very inefficient scalar multiplication on FreeModule_ambient with 
somewhat
large rank
-------------------------------------+-------------------------------------
       Reporter:  daniels            |        Owner:  daniels
           Type:  defect             |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.4
      Component:  linear algebra     |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Daniel Smertnig,   |    Reviewers:  Vincent Delecroix
  Marc Mezzarobba                    |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  8f09d5198e060add5dea75ed240739f6485ba8ce
  public/ticket/13304                |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------
Changes (by vdelecroix):

 * status:  needs_review => needs_work
 * reviewer:   => Vincent Delecroix


Comment:

 Hello,

 You got it right for integer vectors but the generic constructor of
 `FreeModuleElement_generic_dense` does call the basis in a very stupid way
 {{{
     coefficient_ring = parent.basis()[0][0].parent()
 }}}
 In particular the following also takes life time for the very same reason
 {{{
 sage: V = ZZ['x']^50000
 sage: V([0]*50000)
 }}}

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