Lines Matching refs:rslices
362 def m_assign(llst, rlst, lslices, rslices): argument
379 rlst = [m_assign(l, r, lslices[1:], rslices[1:])
380 for l, r in zip(llst[lslices[0]], rlst[rslices[0]])]
384 def cmp_structure(llst, rlst, lslices, rslices): argument
387 rshape = slice_shape(rlst, rslices)
397 def multislice_assign(llst, rlst, lslices, rslices): argument
399 if cmp_structure(llst, rlst, lslices, rslices) < 0:
401 return m_assign(llst, rlst, lslices, rslices)
560 rslices = [0] * ndim
565 rslices[n] = randslice_from_slicelen(slicelen, l)
566 return tuple(lslices), tuple(rslices)
581 lslices = [0]*ndim; rslices = [0]*ndim
604 rslices[n], lslices[n] = s_big, s_small
607 rslices[n], lslices[n] = s_small, s_big
609 return lshape, rshape, tuple(lslices), tuple(rslices)
703 def rslices(n, allow_empty=False): function
751 genslices = rslices
1826 lslices, rslices = randslice_from_shape(ndim, shape)
1834 result = multislice_assign(lst, lst, lslices, rslices)
1840 nd[lslices] = nd[rslices]
1924 lshape, rshape, lslices, rslices = \
1935 xl[lslices] = xr[rslices]
1948 yl[lslices] = yr[rslices]
1965 zl[lslices] = zr[rslices]