[PYTHON MATRIX-SIG] default axes

Konrad Hinsen hinsen@physik.rwth-aachen.de
Fri, 16 Aug 1996 11:32:35 +0200

   > 2) Axis -1 for the first and -2 for the second. Good for matrices
   >    and lists of matrices.

   This would require the second argument to be two-dimensional. I would
   prefer a dot() which would give a scalar when applied to two vectors.
   This holds for 1) and 3).

Good point. I was actually assuming that axis=-2 is taken to mean -1
whenever there are not enough dimensions, an similrly axis=1
means axis=0 for a 1D array. But I am not at all sure if
that is how the current code behaves.


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. A                | 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