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

Function get_ptr_circular

numpy/core/src/multiarray/iterators.c:1681–1693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1679 _coordinates[c] = lb + __npy_euclidean_division(bd, p->limits_sizes[c]);
1680
1681static char*
1682get_ptr_circular(PyArrayIterObject* _iter, const npy_intp *coordinates)
1683{
1684 int i;
1685 npy_intp bd, _coordinates[NPY_MAXDIMS], lb;
1686 PyArrayNeighborhoodIterObject *niter = (PyArrayNeighborhoodIterObject*)_iter;
1687 PyArrayIterObject *p = niter->_internal_iter;
1688
1689 for(i = 0; i < niter->nd; ++i) {
1690 _INF_SET_PTR_CIRCULAR(i)
1691 }
1692 return p->translate(p, _coordinates);
1693}
1694
1695#undef _INF_SET_PTR_CIRCULAR
1696

Callers

nothing calls this directly

Calls 1

translateMethod · 0.80

Tested by

no test coverage detected