Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ isunsigned_short
Function
isunsigned_short
numpy/f2py/auxfuncs.py:167–172 ·
view source on GitHub ↗
(var)
Source
from the content-addressed store, hash-verified
165
166
167
def
isunsigned_short(var):
168
if
not isscalar(var):
169
return
0
170
if
var.get(
'typespec'
) !=
'integer'
:
171
return
0
172
return
get_kind(var) ==
'-2'
173
174
175
def
isunsigned(var):
Callers
nothing calls this directly
Calls
3
get_kind
Function · 0.85
isscalar
Function · 0.70
get
Method · 0.45
Tested by
no test coverage detected