Lines Matching refs:lslices
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]])]
381 llst[lslices[0]] = rlst
384 def cmp_structure(llst, rlst, lslices, rslices): argument
386 lshape = slice_shape(llst, lslices)
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)
559 lslices = [0] * ndim
564 lslices[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)
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]