I am using Python Ctypes to access some C library.
One of the functions I connected to, returns const *double
, which is actually an array of doubles.
When I get the result in Python, how can I convert this array to a python list?
The signature of the C function:
const double *getWeights();
Let's assume that it returns an array that contains 0.13 and 0.12.
I want to get a python List: [0.13, 0.12]