Warps an ndarray