module documentation

Undocumented

Class TestUFunc Test ufunc call memory overlap handling
Function assert_copy_equivalent Check that operation(*args, out=out) produces results equivalent to out[...] = operation(*args, out=out.copy())
Function check_internal_overlap Undocumented
Function check_may_share_memory_easy_fuzz Undocumented
Function check_may_share_memory_exact Undocumented
Function iter_random_view_pairs Undocumented
Function test_diophantine_fuzz Undocumented
Function test_diophantine_overflow Undocumented
Function test_internal_overlap_diophantine Undocumented
Function test_internal_overlap_fuzz Undocumented
Function test_internal_overlap_manual Undocumented
Function test_internal_overlap_slices Undocumented
Function test_may_share_memory_bad_max_work Undocumented
Function test_may_share_memory_easy_fuzz Undocumented
Function test_may_share_memory_harder_fuzz Undocumented
Function test_may_share_memory_manual Undocumented
Function test_non_ndarray_inputs Undocumented
Function test_overlapping_assignments Undocumented
Function test_shares_memory_api Undocumented
Function view_element_first_byte Construct an array viewing the first byte of each element of x
Constant MAY_SHARE_BOUNDS Undocumented
Constant MAY_SHARE_EXACT Undocumented
Variable ndims Undocumented
Variable shape Undocumented
Variable size Undocumented
Function _check_assignment Check assignment arr[dstidx] = arr[srcidx] works.
Function _indices Returns ((axis0_src, axis0_dst), (axis1_src, axis1_dst), ... ) index pairs.
Function _indices_for_axis Returns (src, dst) pairs of indices.
Function _indices_for_nelems Returns slices of length nelems, from start onwards, in direction sign.
def assert_copy_equivalent(operation, args, out, **kwargs): (source)

Check that operation(*args, out=out) produces results equivalent to out[...] = operation(*args, out=out.copy())

def check_internal_overlap(a, manual_expected=None): (source)

Undocumented

def check_may_share_memory_easy_fuzz(get_max_work, same_steps, min_count): (source)

Undocumented

def check_may_share_memory_exact(a, b): (source)

Undocumented

def iter_random_view_pairs(x, same_steps=True, equal_size=False): (source)

Undocumented

@pytest.mark.slow
def test_diophantine_fuzz(): (source)

Undocumented

def test_diophantine_overflow(): (source)

Undocumented

def test_internal_overlap_diophantine(): (source)

Undocumented

def test_internal_overlap_fuzz(): (source)

Undocumented

def test_internal_overlap_manual(): (source)

Undocumented

def test_internal_overlap_slices(): (source)

Undocumented

def test_may_share_memory_bad_max_work(): (source)

Undocumented

@pytest.mark.slow
def test_may_share_memory_easy_fuzz(): (source)

Undocumented

@pytest.mark.slow
def test_may_share_memory_harder_fuzz(): (source)

Undocumented

def test_may_share_memory_manual(): (source)

Undocumented

def test_non_ndarray_inputs(): (source)

Undocumented

def test_overlapping_assignments(): (source)

Undocumented

def test_shares_memory_api(): (source)

Undocumented

def view_element_first_byte(x): (source)

Construct an array viewing the first byte of each element of x

MAY_SHARE_BOUNDS: int = (source)

Undocumented

Value
0
MAY_SHARE_EXACT: int = (source)

Undocumented

Value
-1

Undocumented

Undocumented

Undocumented

def _check_assignment(srcidx, dstidx): (source)

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

def _indices(ndims): (source)

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

def _indices_for_axis(): (source)

Returns (src, dst) pairs of indices.

def _indices_for_nelems(nelems): (source)

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