[PYTHON MATRIX-SIG] A problem with slicing

Hinsen Konrad hinsenk@ere.umontreal.ca
Fri, 15 Sep 1995 14:25:10 -0400

   Hinsen> That's nice on the left hand side of an assignment, but what
   Hinsen> is the value of a[a.gt(2)] in an expression? It can't be an
   Hinsen> array!

   It be an array if you define a selection type indexing, e.g.,

   where select is a method that whose argument has the same
   dimensions as "a" and returns elements of "a" that correspond to
   "true" elements of a.gt(2).

But *how* does it return the elements that correspong to "true"?
Specifically, what is the shape of the array returned?

Konrad Hinsen                     | E-Mail: hinsenk@ere.umontreal.ca
Departement de chimie             | Tel.: +1-514-343-6111 ext. 3953
Universite de Montreal            | Fax:  +1-514-343-7586
C.P. 6128, succ. A                | Deutsch/Esperanto/English/Nederlands/
Montreal (QC) H3C 3J7             | Francais (phase experimentale)

MATRIX-SIG  - SIG on Matrix Math for Python

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