Rajeev Singh wrote:
>     I should mention that these methods are all nice for this problem, but
>     they also end up copying an awful lot of zeros.  I think it would be way
>     more efficient in general to make a zero matrix, then set the right
>     diagonal by hand using a for loop.
> 
> 
> Don't you think using a sparse matrix would be a better thing to do in 
> such situations?


I think that choice ought to be given to the user, in the usual 
"sparse=True/False" option.  If I'm doing a bunch of linear algebra on 
small dense matrices, it slows things down to have one sparse matrix in 
the mix.

I think the sparse option ought to default to False (i.e., default to 
dense) since that seems to be the current convention.

Jason


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to