Code
Hub
Trending
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/numpy/numpy
/ _generate_int32_data
Method
_generate_int32_data
numpy/_core/tests/test_numeric.py:2363–2364 ·
view source on GitHub ↗
(self, n, m)
Source
from the content-addressed store, hash-verified
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)
2365
2366
# Now the real test cases
2367
Callers
8
test_simple_int32_inout
Method · 0.95
test_simple_int64_out
Method · 0.95
test_simple_int64_inout
Method · 0.95
test_type_cast_03
Method · 0.95
test_type_cast_04
Method · 0.95
test_clip_with_out_simple2
Method · 0.95
test_clip_with_out_simple_int32
Method · 0.95
test_clip_with_out_array_int32
Method · 0.95
Calls
2
rand
Function · 0.85
astype
Method · 0.80
Tested by
no test coverage detected