This is documentation for an old release of NumPy (version 1.7.0). Read this page in the documentation of the latest stable release (version > 1.17).
Increment the multi-dimensional index by one.
ndincr takes care of the “wrapping around” of the axes. It is called by ndindex.next and not normally used directly.