[PYTHON MATRIX-SIG] New release of NumericPython 0.31

Hinsen Konrad hinsenk@ere.umontreal.ca
Mon, 29 Jan 1996 10:53:34 -0500

   >From the tutorial:
   1)  First problem is with the types.py file. For some reason when it's imported
   vars(__builtins__) is an illegal argument while it works fine from the prompt.

You can solve this temporarily by removing the call to vars().  It
seems that inside a module definition, __builtins__ is not a module,
but a dictionary. I suspect this is a bug in Python, until someone
can explain me the reason...

   2) The following basic function is worrisome as well...

   >>> m = Matrix([[1,2,3], [4,5,6], [7,8,9]])
   >>> m*m
   Traceback (innermost last):
     File "<stdin>", line 1, in ?
     File "/local2/tools/lib/python/numeric/Matrix.py", line 74, in __mul__
   NameError: MathError

When I try this here, it is a bit different:

Traceback (innermost last):
  File "test.py", line 3, in ?
  File "/usr/people/hinsenk/lib/python/numeric/Matrix.py", line 5, in __mul__
    return self.__return_constructor__(self.array.matrixMultiply(other))
AttributeError: __int__

This indicates that some function can't deal with an int matrix.
What puzzles me in your error message is the indication "line 74".
Matrix.py is rather short!

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