How to define a pointer to a 2d array in cffi
Posted: Fri Nov 22, 2013 6:11 pm
I have a function that accepts a void* as a parameter
Im trying to convert this to use as the void*
this is how i do a void* 1d array
so how do i do the 2d array
Im trying to convert this to use as the void*
Code: Select all
float trainingData[4][2] = { {501, 10}, {255, 10}, {501, 255}, {10, 501} };
Code: Select all
float labels[4] = {1.0, -1.0, -1.0, -1.0};
(labels (foreign-alloc :float :initial-contents '(1.0 -1.0 -1.0 -1.0)))