> sage: A = random_matrix(GF(127),2,2) > sage: B = A.map( lambda x : x+1 ) > sage: B = A.apply( lambda x : x+1 ) > > Of course the input to map or apply is any callable function.
Thats definitely something to implement, however I really like the idea to treat lists and matrices uniformly in some contexts i.e. as data containers. Thus I would like to have an additional functional smap() or whatever we call it. 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/ -~----------~----~----~----~------~----~------~--~---
