[Numpy-discussion] embedded arrays
Thomas Hrabe
thrabe at burnham.org
Fri Jun 6 18:10:25 EDT 2008
Hi all,
while writing a extension module in C++ for python & numpy, I find a strange error.
I can send and retrieve numpy arrays to and from my module.
But python stops if I do the following:
a = numpy.array([[1.1,2,3],[4,5,6]])
PM.put(a,'a') //send a to the module
b = PM.get('a') //get a identical copy from the module
print b
array([[ 1.1, 2. , 3. ],
[ 4. , 5. , 6. ]])
b.__class__
Out[36]: <type 'numpy.ndarray'>
perfect, until
a == b
the interpreter does not continue from here...
I can add values to to b, everything, but a == b simply crashes ...?
Does anybody have a clue for this problem?
Have a nice weekend,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080606/1b63de1d/attachment.html>
More information about the NumPy-Discussion
mailing list