[SciPy-User] Error in scipy.ndimage documentation
moscardi
eric.moscardi at sophia.inria.fr
Mon Sep 20 07:35:48 EDT 2010
Nobody has tried to extend ndimage with C...?
On Sep 10, 2010, at 7:18 PM, Matthieu Brucher wrote:
> Hi,
>
> The following function is referenced on the scipy.ndimage page
> (http://docs.scipy.org/doc/scipy/reference/tutorial/ndimage.html#ndimage-ccallbacks)
> :
>
> static int
> _shift_function(int *output_coordinates, double* input_coordinates,
> int output_rank, int input_rank, void *callback_data)
> {
> int ii;
> /* get the shift from the callback data pointer: */
> double shift = *(double*)callback_data;
> /* calculate the coordinates: */
> for(ii = 0; ii < irank; ii++)
> icoor[ii] = ocoor[ii] - shift;
> /* return OK status: */
> return 1;
> }
>
> It obviously cannot be compiled (irank -> input_rank, icoor ->
> input_coordinates, ocoor -> output_coordinates)
>
> Matthieu
> --
> Information System Engineer, Ph.D.
> Blog: http://matt.eifelle.com
> LinkedIn: http://www.linkedin.com/in/matthieubrucher
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
Eric MOSCARDI
INRIA - Virtual Plants
CIRAD, Avenue Agropolis
34398 Montpellier Cedex 5, France
04 67 61 58 00 (ask number 60 09)
email : eric.moscardi at sophia.inria.fr
More information about the SciPy-User
mailing list