NeuroDataDesign / manifold_random_forests

1 stars 0 forks source link

Convert vector of vectors or array of pointer of pointers to numpy array and back #7

Open adam2392 opened 3 years ago

adam2392 commented 3 years ago

To enable pickling, we basically need to convert proj_vecs in Cython <-> a numpy array or numpy memoryview?I think it would just be a double for loop or something? This is required to enable pickling, since we need to tell the class how to convert things into a readable Python object, and then also how to go from a readable Python object to low-level Cython code.

We have to decide whether it is easier to convert vector[float] -> numpy array of floats or float * -> numpy array of floats.