29 Apr
2005
29 Apr
'05
11:32 a.m.
Suppose arr is a two dimensional numarray. Can the following be done entirely within numarray? alist = arr.tolist() alist.sort() arr = numarray.array(alist, arr.type())
29 Apr
29 Apr
12:42 p.m.
On Fri, 2005-04-29 at 14:30, Edward C. Jones wrote:
Suppose arr is a two dimensional numarray. Can the following be done entirely within numarray?
alist = arr.tolist() alist.sort() arr = numarray.array(alist, arr.type())
I'm pretty sure the answer is no. The comparisons in numarray's sort() functions are all single element numerical comparisons. The list sort() is using a polymorphic comparison which in this case is the comparison of two lists. There's nothing like that in numarray so I don't think it's possible. Todd
6936
Age (days ago)
6936
Last active (days ago)
1 comments
2 participants
participants (2)
-
Edward C. Jones
-
Todd Miller