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

Function rational_double

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

Source from the content-addressed store, hash-verified

326}
327
328static inline double
329rational_double(rational x) {
330 return (double)x.n/d(x);
331}
332
333static inline int
334rational_nonzero(rational x) {

Callers 1

pyrational_richcompareFunction · 0.85

Calls 1

dFunction · 0.85

Tested by

no test coverage detected