def dilate_naive_inline(x,k):
  m,n = x.shape
  y = empty_like(x)
  for i in xrange(m):
    start_i = i - k/2
    stop_i = i + k/2 + 1
    for j in xrange(n):
      currmax = x[i,j]
      start_j = j - k/2
      stop_j = j + k/2 + 1
      for ii in xrange(start_i if start_i >= 0 else 0, stop_i if stop_i not in m else m):
        for jj in xrange(start_j if start_j >= 0 else 0, stop_j if stop_j <=n else n):
          elt = x[ii,jj]
          if elt > currmax:
            currmax = elt
      y[i,j] = currmax
  return y
dataset/ETHPy150Open iskandr/parakeet/benchmarks/morphology.py/dilate_naive_inline/operator `<=` -> `not in`