Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
328
static inline double
329
rational_double(rational x) {
330
return (double)x.n/d(x);
331
}
332
333
static inline int
334
rational_nonzero(rational x) {
Callers
1
pyrational_richcompare
Function · 0.85
Calls
1
d
Function · 0.85
Tested by
no test coverage detected