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

Function npyrational_getitem

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

Source from the content-addressed store, hash-verified

714/* NumPy support */
715
716static PyObject*
717npyrational_getitem(void* data, void* arr) {
718 rational r;
719 memcpy(&r,data,sizeof(rational));
720 return PyRational_FromRational(r);
721}
722
723static int
724npyrational_setitem(PyObject* item, void* data, void* arr) {

Callers

nothing calls this directly

Calls 1

PyRational_FromRationalFunction · 0.85

Tested by

no test coverage detected