[PYTHON MATRIX-SIG] Find/where function

Konrad Hinsen hinsen@ibs.ibs.fr
Tue, 29 Oct 96 09:13:52 GMT


> This is almost equivalent to the current behavior of nonzero (the only
> difference is that your version works on non-flattened arrays).  I'm a
> little bit confused as to how this can possibly make sense for
> multi-dimensional arrays, but if it does, I think it should involve an
> extension of the existing nonzero function, rather than adding a new
> function.

But it doesn't really make sense, since the code he showed works on
a.flat. I'd prefer to leave the flattening explicit and use nonzero()
as it is now.

Konrad.
-- 
-------------------------------------------------------------------------------
Konrad Hinsen                          | E-Mail: hinsen@ibs.ibs.fr
Laboratoire de Dynamique Moleculaire   | Tel.: +33-76.88.99.28
Institut de Biologie Structurale       | Fax:  +33-76.88.54.94
41, av. des Martyrs                    | Deutsch/Esperanto/English/
38027 Grenoble Cedex 1, France         | Nederlands/Francais
-------------------------------------------------------------------------------

=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================