Indexing routines#
Generating index arrays#
|
Return the indices to access the main diagonal of an array. |
|
Return the indices to access the main diagonal of an n-dimensional array. |
|
Return an array representing the indices of a grid. |
|
Return the indices of the elements that are non-zero. |
|
Return elements chosen from x or y depending on condition. |
Indexing-like operations#
|
Construct an array from an index array and a list of arrays to choose from. |
|
Return selected slices of an array along given axis. |
|
Extract a diagonal or construct a diagonal array. |
|
Return specified diagonals. |
|
Take elements from an array along an axis. |