[PYTHON MATRIX-SIG] Data analysis package question

Konrad Hinsen hinsen@ibs.ibs.fr
Fri, 1 Nov 96 15:51:09 +0100


> My other hope is that the door is still open on the future addtion of
> Splus-style syntactic sugar allowing subscripts that are array masks.
> One sure way to impress a new user in Splus is to show them how to
> histogram part of a 3-d array with:
> 
> hist(array[array > 40. & array < 50.])

What is that supposed to mean for a 3-d array? Or even for 2-d?

Anyway, adding syntactic sugar like this can even be done by writing a
Python wrapper for arrays, with no changes to NumPy. Even if
that may be too inefficient for real applications, it is a great way
to test new proposals such as yours.
-- 
-------------------------------------------------------------------------------
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
=================