memoryviews are not numpy arrays. You cannot simply copy one array into another. You must either work with pointers if the memory layout of the array is suitable or you must manually copy the values with a loop.