When taking the miniexpr path, arr = -1 + a gives 0, but -1 when taking the normal numexpr path. When taking the miniexpr path for arr2 = a - 1 the correct -1 answer is returned though.
a = xp.asarray((0,))
arr = -1 + a
arr2 = a - 1
assert arr[0] == arr[()] # fails
assert arr[()] == arr2[()] # fails
When taking the miniexpr path,
arr = -1 + agives 0, but -1 when taking the normal numexpr path. When taking the miniexpr path forarr2 = a - 1the correct -1 answer is returned though.