Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/numpy/numpy
/ _generate_int_data
Method
_generate_int_data
numpy/_core/tests/test_numeric.py:2360–2361 ·
view source on GitHub ↗
(self, n, m)
Source
from the content-addressed store, hash-verified
2358
return
data
2359
2360
def
_generate_int_data(self, n, m):
2361
return
(10 * rand(n, m)).astype(np.int64)
2362
2363
def
_generate_int32_data(self, n, m):
2364
return
(10 * rand(n, m)).astype(np.int32)
Callers
5
test_simple_int
Method · 0.95
test_type_cast_02
Method · 0.95
test_type_cast_05
Method · 0.95
test_type_cast_10
Method · 0.95
test_type_cast_12
Method · 0.95
Calls
2
rand
Function · 0.85
astype
Method · 0.80
Tested by
no test coverage detected