> > 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? Rajeev --~--~---------~--~----~------------~-------~--~----~ 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 For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---