numpy array to intc and double for C compatibility