relax requirements, make sure that numpy input array is contiguous