MCPcopy Create free account
hub / github.com/numpy/numpy / func

Method func

numpy/core/tests/test_numeric.py:1617–1618  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

1615 # The array should be large enough to likely run into threading issues
1616 arr = np.random.uniform(size=(5000, 4)).view(dt)[:, 0]
1617 def func(arr):
1618 arr.nonzero()
1619
1620 tpe = ThreadPoolExecutor(max_workers=8)
1621 futures = [tpe.submit(func, arr) for _ in range(10)]

Callers 15

PyArray_NewFromDescr_intFunction · 0.45
PyArray_CopyAsFlatFunction · 0.45
raw_array_assign_scalarFunction · 0.45
cast_raw_scalar_itemFunction · 0.45
npy_fasttake_implFunction · 0.45
PyArray_PutToFunction · 0.45
PyArray_PutMaskFunction · 0.45
npy_fastrepeat_implFunction · 0.45
PyArray_ChooseFunction · 0.45
_new_sortlikeFunction · 0.45
_new_argsortlikeFunction · 0.45
PyArray_WhereFunction · 0.45

Calls 1

nonzeroMethod · 0.80

Tested by

no test coverage detected