Indexing routines
Generating index arrays
Return the indices of the elements that are non-zero. |
|
Return elements chosen from x or y depending on condition. |
|
Return an array representing the indices of a grid. |
|
Construct an open mesh from multiple sequences. |
|
Construct an open multi-dimensional "meshgrid". |
|
Converts a tuple of index arrays into an array of flat indices, applying boundary modes to the multi-index. |
|
Converts array of flat indices into a tuple of coordinate 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 the indices to access (n, n) arrays, given a masking function. |
|
Return the indices for the lower-triangle of an (n, m) array. |
|
Return the indices for the lower-triangle of arr. |
|
Return the indices for the upper-triangle of an (n, m) array. |
|
Return the indices for the lower-triangle of arr. |
Indexing-like operations
Take elements from an array along an axis. |
|
Take values from the input array by matching 1d index and data slices. |
|
Construct an array from an index array and a set 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. |
|
Return an array drawn from elements in choicelist, depending on conditions. |
Inserting data into arrays
Change elements of an array based on conditional and input values. |
|
Puts values of an array into another array along a given axis. |
|
Put values into the destination array by matching 1d index and data slices. |
|
Changes elements of an array based on conditional and input values. |
|
Fill the main diagonal of the given array of any dimensionality. |
Iterating over arrays
An N-dimensional iterator object to index arrays. |
|
Flat iterator object to iterate over arrays. |
|
Check whether or not an object can be iterated over. |