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

Function array_protocol_strides_get

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

Source from the content-addressed store, hash-verified

229}
230
231static PyObject *
232array_protocol_strides_get(PyArrayObject *self)
233{
234 if (PyArray_ISCONTIGUOUS(self)) {
235 Py_RETURN_NONE;
236 }
237 return PyArray_IntTupleFromIntp(PyArray_NDIM(self), PyArray_STRIDES(self));
238}
239
240
241

Callers 1

array_interface_getFunction · 0.85

Calls 3

PyArray_IntTupleFromIntpFunction · 0.85
PyArray_NDIMFunction · 0.85
PyArray_STRIDESFunction · 0.85

Tested by

no test coverage detected