Yes, I think that in general map and reduce statements will be a little faster than direct for looping. See http://www.python.org/doc/essays/list2str/ for example.
Aaron Meurer On Aug 8, 2009, at 10:32 PM, Luke wrote: > Attached is a patch that: > 1) removes the .expand() call that was being done in matrix_multiply() > 2) adds a doctest and improves the docstring > 3) provides and alternative implementation that is somewhat clearer, > but about 5% slower. > > ~Luke > > > > <0001-Removed-.expand-in-matrix_multiply-added-doctests.patch> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy-patches" group. To post to this group, send email to sympy-patches@googlegroups.com To unsubscribe from this group, send email to sympy-patches+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy-patches?hl=en -~----------~----~----~----~------~----~------~--~---