'Get all arguments in array form'

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)):
            self.scalarpos.append(i)
        else:
            raise TypeError(('argument    #%d    has    invalid    type' % ((i + 1),)))
