[Scipy-svn] r4623 - branches/stats_models/src

scipy-svn@scip... scipy-svn@scip...
Fri Aug 8 14:03:49 CDT 2008


Author: chris.burns
Date: 2008-08-08 14:03:44 -0500 (Fri, 08 Aug 2008)
New Revision: 4623

Modified:
   branches/stats_models/src/bspline_ext.c
Log:
Fix pointer reference bug.

Modified: branches/stats_models/src/bspline_ext.c
===================================================================
--- branches/stats_models/src/bspline_ext.c	2008-08-08 18:04:44 UTC (rev 4622)
+++ branches/stats_models/src/bspline_ext.c	2008-08-08 19:03:44 UTC (rev 4623)
@@ -32,7 +32,7 @@
     data    = (double *)PyArray_DATA(invband);
     free(dims_invband);
 
-    invband_compute(data, L_data, (int)dims_L[0], (int)dims_L[1]);
+    invband_compute(&data, L_data, (int)dims_L[0], (int)dims_L[1]);
 
 exit:
 
@@ -49,7 +49,7 @@
     int dl;
     int dr;
     double *knots;
-    double **data;
+    double *data;
     npy_intp *nknots;
     npy_intp *dims_gram;
     PyArrayObject *knots_array = NULL;
@@ -66,10 +66,10 @@
     dims_gram[1] = m; 
 
     gram_array  = (PyArrayObject*)PyArray_SimpleNew(2, dims_gram, PyArray_DOUBLE);
-    data        = (double **)PyArray_DATA(gram_array);
+    data        = (double *)PyArray_DATA(gram_array);
     free(dims_gram);
 
-    bspline_gram(data, knots, (int)nknots[0], m, dl, dr);
+    bspline_gram(&data, knots, (int)nknots[0], m, dl, dr);
 
 exit:
 



More information about the Scipy-svn mailing list