[PYTHON MATRIX-SIG] Time for recap?

Hinsen Konrad hinsenk@ere.umontreal.ca
Mon, 2 Oct 1995 13:08:11 -0400


   I just meant to end the debate about whether a*b should mean matrix
   multiplication in the LA sense or elementwise multiplication like
   APL/J.  This only an issue for * and /.  For / most people agree that
   ...

OK, on that I agree, of course. I thought you were referring to
functions like matrix inversion.

   I don't see much of a problem with that.  Functions/methods that take
   an array and return a like-shaped array should always copy their
   argument before modifying it.  Methods that are supposed to modify an
   array in place should not also return a reference to the array.

That seems a good way to make the distinction clear.

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