I'd like a better Cython primitive for allocating, filling, and converting from an H3 index array to a Cython memview than our current approach of paired function calls to create_ptr and create_mv.
Another idea if this ends up being a Cython class: we could use the class to do handy things like removing H3_NULL values and freeing the extra memory, or canonicalizing the array.
I'd like a better Cython primitive for allocating, filling, and converting from an H3 index array to a Cython
memview
than our current approach of paired function calls tocreate_ptr
andcreate_mv
.Example:
Ideas:
Other kinds of arrays
This pattern also doesn't cover when we have to allocate space for non-H3Index arrays.