def __init__(self):
        np.random.seed(0)
        self.n = 50
        self.lb = -0.1 * (1 + np.arange(self.n))
        self.ub = 0.1 * (1 + np.arange(self.n))
        self.x0 = np.empty(self.n)
        self.x0[::2] = (1 - 1e-7) * self.lb[::2]
        self.x0[1::2] = (1e-7 - 1) * self.ub[1::2]

        self.J_true = self.jac(self.x0)
dataset/ETHPy150Open scipy/scipy/scipy/optimize/tests/test__numdiff.py/TestApproxDerivativeSparse.__init__/swapped operands of `-`