From: Konrad H. <hi...@cn...> - 2002-03-07 18:31:25
|
> 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 type-tested. > 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. -- ------------------------------------------------------------------------------- Konrad Hinsen | E-Mail: hi...@cn... Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ France | Nederlands/Francais ------------------------------------------------------------------------------- |