[PYTHON MATRIX-SIG] Forget adding new operators to Python

Dave Forrest forrest@rose.rsoc.rockwell.com
Thu, 14 Sep 1995 08:39:37 -0500


This is a strong reason to provide two different interfaces - matrix
and array.  You can implement them both with the same code, but just
provide a simple interface to matrix that restricts itself to two
dimensions and does matrix multiplication with operator *.  Array then
acts "element-wise" and generalizes to any dimension,etc.

Result: People who want stuff like my folks want are happy, people who
want the more general stuff are happy, it's only implemented once, and
no new operators are added to the language.

dF

=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================