Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ rational_nonzero
Function
rational_nonzero
numpy/core/src/umath/_rational_tests.c:333–336 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
331
}
332
333
static inline int
334
rational_nonzero(rational x) {
335
return x.n!=0;
336
}
337
338
static int
339
scan_rational(const char** s, rational* x) {
Callers
3
pyrational_nonzero
Function · 0.85
npyrational_nonzero
Function · 0.85
pyrational_richcompare
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected