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

Function arrayflags_forc_get

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

Source from the content-addressed store, hash-verified

206 NPY_ARRAY_C_CONTIGUOUS, carray)
207
208static PyObject *
209arrayflags_forc_get(PyArrayFlagsObject *self, void *NPY_UNUSED(ignored))
210{
211 PyObject *item;
212
213 if (((self->flags & NPY_ARRAY_F_CONTIGUOUS) == NPY_ARRAY_F_CONTIGUOUS) ||
214 ((self->flags & NPY_ARRAY_C_CONTIGUOUS) == NPY_ARRAY_C_CONTIGUOUS)) {
215 item = Py_True;
216 }
217 else {
218 item = Py_False;
219 }
220 Py_INCREF(item);
221 return item;
222}
223
224static PyObject *
225arrayflags_fnc_get(PyArrayFlagsObject *self, void *NPY_UNUSED(ignored))

Callers 1

arrayflags_getitemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected