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

Function arrayflags_fnc_get

numpy/core/src/multiarray/flagsobject.c:224–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224static PyObject *
225arrayflags_fnc_get(PyArrayFlagsObject *self, void *NPY_UNUSED(ignored))
226{
227 PyObject *item;
228
229 if (((self->flags & NPY_ARRAY_F_CONTIGUOUS) == NPY_ARRAY_F_CONTIGUOUS) &&
230 !((self->flags & NPY_ARRAY_C_CONTIGUOUS) == NPY_ARRAY_C_CONTIGUOUS)) {
231 item = Py_True;
232 }
233 else {
234 item = Py_False;
235 }
236 Py_INCREF(item);
237 return item;
238}
239
240static PyObject *
241arrayflags_farray_get(PyArrayFlagsObject *self, void *NPY_UNUSED(ignored))

Callers 1

arrayflags_getitemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected