Hi Thomas
2008/5/15 Thomas Hrabe <[EMAIL PROTECTED]>:
> PyArray_FromDimsAndData(dimensions,size,NPY_DOUBLELTR,(char*)value);
> //TROUBLE HERE
I didn't know a person could write a stand-alone program using NumPy
this way (can you?); but what I do know is that FromDimsAndData is
deprecated, and that it can be replaced here by
PyArray_SimpleNewFromData(dimensions, size, NPY_CDOUBLE, value);
where
npy_intp* size = malloc(sizeof(npy_intp)*2);
Regards
Stéfan
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion