.. _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
   ravel_multi_index
   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/

   nditer
   ndenumerate
   ndindex
   flatiter
   lib.Arrayterator
