.. _routines.indexing:

Indexing routines
=================

.. seealso:: :ref:`Indexing <arrays.indexing>`

.. currentmodule:: numpy

Generating index arrays
-----------------------
.. autosummary::
   :toctree: generated/

   c_
   r_
   s_
   nonzero
   where
   indices
   ix_
   ogrid
   unravel_index
   diag_indices
   diag_indices_from
   mask_indices
   tril_indices
   tril_indices_from
   triu_indices
   triu_indices_from

Indexing-like operations
------------------------
.. autosummary::
   :toctree: generated/

   take
   choose
   compress
   diag
   diagonal
   select

Inserting data into arrays
--------------------------
.. autosummary::
   :toctree: generated/

   place
   put
   putmask
   fill_diagonal

Iterating over arrays
---------------------
.. autosummary::
   :toctree: generated/

   ndenumerate
   ndindex
   flatiter
