[Prev] Thread [Next]  |  [Prev] Date [Next]

[sage-support] Re: Creating large matrix hangs Yann Sat Oct 23 05:00:16 2010

> In the matrix constructor (matrix in sage/matrix/constructor.py):
> entries = sum([list(v) for v in args[0]], [])    <--- this is bad
> (quadratic in the length of argv[0] which is the number of rows here)

and to be complete, this could be replaced by:

entries = []
for v in args[0]: entries.extend(v)


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 
URL: http://www.sagemath.org