[Numpy-discussion] Is this a wheel?
Konrad Hinsen
hinsen at cnrs-orleans.fr
Wed Feb 7 09:16:34 EST 2001
> element of a NumPy array. I seeked through the documentation and found the
> argmax/argmin functions. However, they must be called recursively to find
> the greatest(smallest) element of a multidimendional array. As I needed to
You could run it on Numeric.ravel(array) (which shouldn't make a
copy), and then reconstruct the multidimensional indices from the
single index into the flattened array. The additional overhead
should be minimal, and you don't need any C code.
Konrad
--
-------------------------------------------------------------------------------
Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24
Rue Charles Sadron | Fax: +33-2.38.63.15.17
45071 Orleans Cedex 2 | Deutsch/Esperanto/English/
France | Nederlands/Francais
-------------------------------------------------------------------------------
More information about the NumPy-Discussion
mailing list