def _fill_arrays(self):
        for i, arg in enumerate(self.args):
            if isinstance(arg, np.ndarray):
                self.arrays[i] = arg
            elif self.is_device_array(arg):
                self.arrays[i] = arg
            elif isinstance(arg, (int, longint, float, complex, np.number)):
                # Is scalar
                self.scalarpos.append(i)
            else:
                raise TypeError("argument #%d has invalid type" % (i + 1,))
Get all arguments in array form
dataset/ETHPy150Open numba/numba/numba/npyufunc/deviceufunc.py/UFuncMechanism._fill_arrays