Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ _signs
Function
_signs
numpy/core/tests/test_scalarmath.py:286–290 ·
view source on GitHub ↗
(dt)
Source
from the content-addressed store, hash-verified
284
285
286
def
_signs(dt):
287
if
dt in np.typecodes[
'UnsignedInteger'
]:
288
return
(+1,)
289
else
:
290
return
(+1, -1)
291
292
293
class
TestModulus:
Callers
1
test_modulus_basic
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected