def _fill_stride_by_order(shape, dtype, order):
    nd = len(shape)
    strides = [0] * nd
    if order == 'C':
        strides[-1] = dtype.itemsize
        for d in reversed(range(nd - 1)):
            strides[d] = strides[d + 1] * shape[d + 1]
    elif order == 'F':
        strides[0] = dtype.itemsize
        for d in range(1, nd):
            strides[d] = strides[1 - d] * shape[d - 1]
    else:
        raise ValueError('must be either C/F order')
    return tuple(strides)
dataset/ETHPy150Open numba/numba/numba/cuda/api.py/_fill_stride_by_order/swapped operands of `-`