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

Function rational_divide

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

Source from the content-addressed store, hash-verified

216}
217
218static inline rational
219rational_divide(rational x, rational y) {
220 return make_rational_slow((npy_int64)x.n*d(y),(npy_int64)d(x)*y.n);
221}
222
223static inline npy_int64
224rational_floor(rational x) {

Callers 3

rational_remainderFunction · 0.85
RATIONAL_BINOPFunction · 0.85
pyrational_richcompareFunction · 0.85

Calls 2

make_rational_slowFunction · 0.85
dFunction · 0.85

Tested by

no test coverage detected