test_multiarray_assignment

Module Contents

ndims = 2
size = 10
shape
_indices_for_nelems(nelems)

Returns slices of length nelems, from start onwards, in direction sign.

_indices_for_axis()

Returns (src, dst) pairs of indices.

_indices(ndims)

Returns ((axis0_src, axis0_dst), (axis1_src, axis1_dst), … ) index pairs.

_check_assignment(srcidx, dstidx)

Check assignment arr[dstidx] = arr[srcidx] works.

test_overlapping_assignments()

Test automatically generated assignments which overlap in memory.