MCPcopy Create free account
hub / github.com/numpy/numpy / rational_sign

Function rational_sign

numpy/core/src/umath/_rational_tests.c:265–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265static inline int
266rational_sign(rational x) {
267 return x.n<0?-1:x.n==0?0:1;
268}
269
270static inline rational
271rational_inverse(rational x) {

Callers 1

pyrational_richcompareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected