From: <jou...@gm...> - 2004-11-14 18:36:50
|
On Sun, 14 Nov 2004 18:08:59 +0200, Jouni K Sepp=E4nen <jou...@gm...> wrote: > > Here's what I'm using to emulate Matlab's find; it only seems to work > with Numeric, not numarray Oops - actually it seems that after from matplotlib.numerix import ravel, indices, compress the function works whether numerix is using numarray or Numeric. Making a special case of single-dimensional inputs is not very elegant, but doing otherwise would break compatibility with the existing mlab.find; and I guess there is no way in Python of emulating Matlab's detection of the number of output arguments. --=20 Jouni K Sepp=E4nen http://www.iki.fi/jks |