I haven't checked this, but I suspect that the naive approach of making a 
copy of the zero matrix and then filling in the entries with set_unsafe in 
a loop will be faster. 

On Wednesday, December 5, 2012 11:24:44 PM UTC, Nils Bruin wrote:
>
> No, list concatenation does not benefit from balanced trees. 
> sum(entries,[]) should simply be spelled
> L=[]
> L.extend(itertools.chain(*entries))
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.


Reply via email to