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

Function iter_richcompare

numpy/core/src/multiarray/iterators.c:1047–1060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1045};
1046
1047static PyObject *
1048iter_richcompare(PyArrayIterObject *self, PyObject *other, int cmp_op)
1049{
1050 PyArrayObject *new;
1051 PyObject *ret;
1052 new = (PyArrayObject *)iter_array(self, NULL);
1053 if (new == NULL) {
1054 return NULL;
1055 }
1056 ret = array_richcompare(new, other, cmp_op);
1057 PyArray_ResolveWritebackIfCopy(new);
1058 Py_DECREF(new);
1059 return ret;
1060}
1061
1062
1063static PyMemberDef iter_members[] = {

Callers

nothing calls this directly

Calls 3

iter_arrayFunction · 0.85
array_richcompareFunction · 0.85

Tested by

no test coverage detected