MCPcopy
hub / github.com/numpy/numpy / assert_arr_partitioned

Function assert_arr_partitioned

numpy/_core/tests/test_multiarray.py:72–75  ·  view source on GitHub ↗
(kth, k, arr_part)

Source from the content-addressed store, hash-verified

70
71
72def assert_arr_partitioned(kth, k, arr_part):
73 assert_equal(arr_part[k], kth)
74 assert_array_compare(operator.__le__, arr_part[:k], kth)
75 assert_array_compare(operator.__ge__, arr_part[k:], kth)
76
77
78def _aligned_zeros(shape, dtype=float, order="C", align=None):

Callers 2

test_partition_intFunction · 0.85
test_partition_fpFunction · 0.85

Calls 2

assert_equalFunction · 0.90
assert_array_compareFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…