MCPcopy 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
286def _signs(dt):
287 if dt in np.typecodes['UnsignedInteger']:
288 return (+1,)
289 else:
290 return (+1, -1)
291
292
293class TestModulus:

Callers 1

test_modulus_basicMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected