object_based_ufuncs #1

Manually merged
daknuett merged 9 commits from object_based_ufuncs into master 2019-07-12 19:53:02 +00:00
Showing only changes of commit d3a227ac19 - Show all commits

View File

@ -38,6 +38,8 @@ interaction_ufunc_force
npy_intp i; npy_intp i;
printf("DATA IS: %x\n", data);
printf("DATA[0] IS: %x\n", data[0]);
float * coefficients = (float *) data[0]; float * coefficients = (float *) data[0];
for(i = 0; i < n; i++) for(i = 0; i < n; i++)
@ -227,7 +229,8 @@ interaction_UFuncWrapper_init
} }
} }
Py_INCREF(self->ufunc); Py_INCREF(self->ufunc);
printf("%x\n", self->coefficients); printf("PASSED = %x\n", &(self->coefficients));
printf("PASSED[0] = %x\n", self->coefficients);
return 0; return 0;
} }