[PYTHON MATRIX-SIG] RubberIndex
Konrad HINSEN
hinsenk@ere.umontreal.ca
Tue, 13 Feb 1996 15:22:43 -0500
In fact, I would prefer to eliminate a[0] in preference of a[0,...].
I do not like the fact that an error is not generated if I use to few
indexes. For example, suppose 'a' has shape (2,4,5,6). I want the
You certainly have a point, but it also makes sense to keep
the usability of arrays as sequence objects. For example, you
can now iterate over the first axis of an array with
for x in array([[1,2],[3,4]]): print x*x
Also, most array functions accept nested lists as well as arrays.
I'd like to keep this analogy as far as possible.
-------------------------------------------------------------------------------
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
=================