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

Function rational_abs

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

Source from the content-addressed store, hash-verified

245}
246
247static inline rational
248rational_abs(rational x) {
249 rational y;
250 y.n = safe_abs32(x.n);
251 y.dmm = x.dmm;
252 return y;
253}
254
255static inline npy_int64
256rational_rint(rational x) {

Callers 1

pyrational_richcompareFunction · 0.85

Calls 1

safe_abs32Function · 0.85

Tested by

no test coverage detected