.. _routines.indexing:
.. _arrays.indexing:

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

.. seealso:: :ref:`basics.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
   take_along_axis
   choose
   compress
   diag
   diagonal
   select
   lib.stride_tricks.sliding_window_view
   lib.stride_tricks.as_strided

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

   place
   put
   put_along_axis
   putmask
   fill_diagonal

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

   nditer
   ndenumerate
   ndindex
   nested_iters
   flatiter
   lib.Arrayterator
   iterable
