[PYTHON MATRIX-SIG] RubberIndex

Konrad HINSEN hinsenk@ere.umontreal.ca
Sat, 24 Feb 1996 09:50:39 -0500


   In IDL, Tela and Yorick using a single index or slice defaults to
   indexing an array in flattened form.  Otherwise, the number of actual
   indexes used must equal the rank.

I won't deny that this has some practical advantages, but it violates
the principle that an array is first of all a structured collection
of data with a definite shape. Changing this structure should always
be an explicit operation, not hidden in a special rule for indexing.
For me it still makes more sense to consider an array equivalent
to a nested list with the same structure.

   Like other array languages, if more than one index is used without a
   rubber index and there are fewer indexes than the array rank then an
   error should result.

I certainly agree on that.

-------------------------------------------------------------------------------
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
=================