April 29, 2005
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())
April 2005
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
7499
Age (days ago)
7499
Last active (days ago)
1 comments
2 participants
participants (2)
-
Edward C. Jones -
Todd Miller