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

Function arrayflags_farray_get

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

Source from the content-addressed store, hash-verified

238}
239
240static PyObject *
241arrayflags_farray_get(PyArrayFlagsObject *self, void *NPY_UNUSED(ignored))
242{
243 PyObject *item;
244
245 if (((self->flags & (NPY_ARRAY_ALIGNED|
246 NPY_ARRAY_WRITEABLE|
247 NPY_ARRAY_F_CONTIGUOUS)) != 0) &&
248 !((self->flags & NPY_ARRAY_C_CONTIGUOUS) != 0)) {
249 item = Py_True;
250 }
251 else {
252 item = Py_False;
253 }
254 Py_INCREF(item);
255 return item;
256}
257
258static PyObject *
259arrayflags_num_get(PyArrayFlagsObject *self, void *NPY_UNUSED(ignored))

Callers 1

arrayflags_getitemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected