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

Function rational_int

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

Source from the content-addressed store, hash-verified

321}
322
323static inline npy_int32
324rational_int(rational x) {
325 return x.n/d(x);
326}
327
328static inline double
329rational_double(rational x) {

Callers 1

pyrational_richcompareFunction · 0.85

Calls 1

dFunction · 0.85

Tested by

no test coverage detected