# [PYTHON MATRIX-SIG] RubberIndex

**Konrad HINSEN
**
hinsenk@ere.umontreal.ca

*Tue, 13 Feb 1996 08:47:08 -0500*

This "stretching" only works from the left: In other words, if '...' is
used *after* a non-pseudo index, then it is equivalent to ':', and does
not stretch. [should ... be allowed after a non-pseudo index?]
'...' at the end of an index expression makes no sense, as you could
just as well leave it out (a[0, ...] is the same as a[0]). Neither
does it make sense to have more than one '...' in an index expression,
since it stands for "all remaining axes", which you can use up only
once. It would be good if this would lead to an exception. But it
does make sense to have '...' between two groups of other indices,
i.e. a[1, ..., 0] or a[2, ..., NewAxis].
-------------------------------------------------------------------------------
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. Centre-Ville | 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
=================