NUMPY_API * Produce a pointer into array */
| 216 | * Produce a pointer into array |
| 217 | */ |
| 218 | NPY_NO_EXPORT void * |
| 219 | PyArray_GetPtr(PyArrayObject *obj, npy_intp const* ind) |
| 220 | { |
| 221 | int n = PyArray_NDIM(obj); |
| 222 | npy_intp *strides = PyArray_STRIDES(obj); |
| 223 | char *dptr = PyArray_DATA(obj); |
| 224 | |
| 225 | while (n--) { |
| 226 | dptr += (*strides++) * (*ind++); |
| 227 | } |
| 228 | return (void *)dptr; |
| 229 | } |
| 230 | |
| 231 | /*NUMPY_API |
| 232 | * Compare Lists |
nothing calls this directly
no test coverage detected