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

Function npyrational_compare

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

Source from the content-addressed store, hash-verified

806}
807
808static int
809npyrational_compare(const void* d0, const void* d1, void* arr) {
810 rational x = *(rational*)d0,
811 y = *(rational*)d1;
812 return rational_lt(x,y)?-1:rational_eq(x,y)?0:1;
813}
814
815#define FIND_EXTREME(name,op) \
816 static int \

Callers

nothing calls this directly

Calls 2

rational_ltFunction · 0.85
rational_eqFunction · 0.85

Tested by

no test coverage detected