> There might be something simpler though. How about if we overload Python's built-in map function such that it also works for matrices and falls back to the built-in one for the rest? Or if that is an issue because it might be confusing for Python users, we could call it smap/sage_map?
So for example: sage: A = random_matrix(GF(127),2,2) sage: B = smap(lambda x: x + 1, A) Thoughts? Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 _www: http://www.informatik.uni-bremen.de/~malb _jab: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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-forum URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---
