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

Function rational_negative

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

Source from the content-addressed store, hash-verified

185}
186
187static inline rational
188rational_negative(rational r) {
189 rational x;
190 x.n = safe_neg(r.n);
191 x.dmm = r.dmm;
192 return x;
193}
194
195static inline rational
196rational_add(rational x, rational y) {

Callers 2

rational_ceilFunction · 0.85
pyrational_richcompareFunction · 0.85

Calls 1

safe_negFunction · 0.85

Tested by

no test coverage detected