Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ _generate_int_data
Method
_generate_int_data
numpy/core/tests/test_numeric.py:1871–1872 ·
view source on GitHub ↗
(self, n, m)
Source
from the content-addressed store, hash-verified
1869
return
data
1870
1871
def
_generate_int_data(self, n, m):
1872
return
(10 * rand(n, m)).astype(np.int64)
1873
1874
def
_generate_int32_data(self, n, m):
1875
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