I made a tiny one line patch, it would be nice of view to review it. http://sagetrac.org/sage_trac/ticket/6968
Yann Results after patching: sage: m=identity_matrix(1000,sparse=True) sage: v=vector([1]*1000,sparse=True) sage: time p = v*m CPU times: user 0.20 s, sys: 0.00 s, total: 0.20 s Wall time: 0.21 s sage: v=matrix(1,1000,[1]*1000,sparse=True) sage: time p = v*m CPU times: user 0.35 s, sys: 0.00 s, total: 0.35 s Wall time: 0.35 s On 20 sep, 21:55, Craig Citro <[email protected]> wrote: > > Is there a good reason for such a difference? > > I think the only reason is that the vector code in Sage hasn't > received much attention over the years. William and I talked about > this a while back, and basically agreed that it would be best to > rewrite most of the vector classes as a *very* light wrapper around > matrices of size 1xn or nx1. This is one of the projects I'm planning > on taking care of in the Fall, so if anyone has any thoughts or > suggestions, please pipe in! > > -cc --~--~---------~--~----~------------~-------~--~----~ 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-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
