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

Function rational_eq

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

Source from the content-addressed store, hash-verified

287}
288
289static inline int
290rational_eq(rational x, rational y) {
291 /*
292 * Since we enforce d > 0, and store fractions in reduced form,
293 * equality is easy.
294 */
295 return x.n==y.n && x.dmm==y.dmm;
296}
297
298static inline int
299rational_ne(rational x, rational y) {

Callers 3

rational_neFunction · 0.85
npyrational_compareFunction · 0.85
pyrational_richcompareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected