Re: [Numpy-discussion] embedded PyArray_FromDimsAndData Segmentation Fault

2008-05-14 Thread Stéfan van der Walt
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 th

Re: [Numpy-discussion] embedded PyArray_FromDimsAndData Segmentation Fault

2008-05-14 Thread Robert Kern
On Wed, May 14, 2008 at 5:42 PM, Thomas Hrabe <[EMAIL PROTECTED]> wrote: > > Hi all, > > the PyArray_FromDimsAndData is still cousing me headaches. > > Is there anybody out there finding the error of the following code? > > #include "Python.h" > #include > int main(int argc,char** argv) > { > >

[Numpy-discussion] embedded PyArray_FromDimsAndData Segmentation Fault

2008-05-14 Thread Thomas Hrabe
Hi all, the PyArray_FromDimsAndData is still cousing me headaches. Is there anybody out there finding the error of the following code? #include "Python.h" #include int main(int argc,char** argv) { int dimensions = 2; void* value = malloc(sizeof(double)*100); int* si