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

Function pyrational_nonzero

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

Source from the content-addressed store, hash-verified

601}
602
603static int
604pyrational_nonzero(PyObject* self) {
605 rational x = ((PyRational*)self)->r;
606 return rational_nonzero(x);
607}
608
609static PyNumberMethods pyrational_as_number = {
610 pyrational_add, /* nb_add */

Callers

nothing calls this directly

Calls 1

rational_nonzeroFunction · 0.85

Tested by

no test coverage detected