[Numpy-discussion] Adding a flag to allow integer array access and masking

Konrad Hinsen hinsen at cnrs-orleans.fr
Thu Mar 7 10:32:04 CST 2002

> Are you suggesting something like:
> b = IndexArray([1,3,10,100])
> a[b]?

Exactly. With IndexArray being some special object (if only a thin
wrapper), that prints differently from a simple array and can be

> This is really not much different than.
> a[[1,3,10,100],IndexArray]

Except that in the first case, there is exactly one indexing object
per axis, the operation can be a different one along each axis, and
the index object carries specifies its own meaning. But the effect
is the same, of course.

Konrad Hinsen                            | E-Mail: hinsen at cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-
Rue Charles Sadron                       | Fax:  +33-
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais

More information about the Numpy-discussion mailing list