[PYTHON MATRIX-SIG] take()
Konrad Hinsen
hinsen@ibs.ibs.fr
Tue, 29 Oct 96 09:15:27 GMT
> Is there a reason why take() can not use a scalar/rank-0 array as an
> index vector and just reduce the rank like is done with [] indexing?
>
> a = arange(10)
> take(a, 1) <=> a[1]
No problem in principle. In fact I would expect it to work.
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
=================