[Numpy-discussion] PyArray_Zeros

Hanni Ali hanni.ali at gmail.com
Tue Jan 27 09:45:51 EST 2009


Hi,

I have been having trouble with the PyArray_Zeros/PyArray_ZEROS functions. I
cannot seem to create an array using these functions.

resultArray = PyArray_ZEROS(otherArray->nd, otherArray->dimensions,
NPY_DOUBLE, 0);

I would have thought this would have created an array the same shape as the
otherArray, just filled with zeros...

But I seem to get an error.

Am I doing something obviously wrong?

Hanni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090127/a580aeb8/attachment.html>


More information about the NumPy-Discussion mailing list