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

Function rational_multiply

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

Source from the content-addressed store, hash-verified

210}
211
212static inline rational
213rational_multiply(rational x, rational y) {
214 /* We're safe from overflow as with + */
215 return make_rational_fast((npy_int64)x.n*y.n,(npy_int64)d(x)*d(y));
216}
217
218static inline rational
219rational_divide(rational x, rational y) {

Callers 3

rational_remainderFunction · 0.85
npyrational_dotFunction · 0.85
pyrational_richcompareFunction · 0.85

Calls 2

make_rational_fastFunction · 0.85
dFunction · 0.85

Tested by

no test coverage detected