@jit 
def linspace(start, stop, num = 50, endpoint = True):
  """
  Copied from numpy.linspace but dropped the 'retstep' option 
  which allows you to optionall return a tuple (that messes with type inference)
  """
  num = int(num)
  if num <= 0:
    return np.array([])
  elif endpoint:
    if num == 1:
      return np.array([float(start)])
    step = (stop-start)/float((num-1))
    y = np.arange(0, num) * step + start
    y[-1] = stop
    return y
  else:
    step = (stop-start)/float(num)
    return np.arange(0, num) * step + start
dataset/ETHPy150Open iskandr/parakeet/parakeet/lib/array_constructors.py/linspace/original