[Matrix-SIG] Hard coded results.
Travis Oliphant
Oliphant.Travis@mayo.edu
Wed, 23 Jun 1999 10:55:55 -0500 (CDT)
Well, it was just too much temptation so I tried a hard-coding the
PyArray_SHORT, PyArray_FLOAT, PyArray_CFLOAT into PyArray_ObjectType and
recompiled. It works as expected.
Here are the results.
>>> d = array([1,2,3])
>>> d
array([1, 2, 3],'s')
>>> 2*d
array([2, 4, 6],'s')
>>> 3.0*d
array([ 3., 6., 9.],'f')
>>> 3j*d
Segmentation fault
Oops! Someone else should try this as I have problems with using
egcs-compiled Numeric with pgcc-compiled Python (which is what this was
tested under).
Note that also:
>>> d = array([1j,3,4])
>>> d
array([ 0.+1.j, 3.+0.j, 4.+0.j],'F')
Travis