Using vec.ctypes.data gives you the memory address of the first element of the array.
Last updated 1 year ago