Indexing routines#
Generating index arrays#
|
Converts a flat index or 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 upper-triangle of arr. |
|
Return an array representing the indices of a grid. |
|
Construct an open mesh from multiple sequences. |
|
Return the indices of the elements that are non-zero. |
|
Return indices that are non-zero in the flattened version of a. |
|
where(condition, [x, y]) |
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. |
|
Return an array drawn from elements in choicelist, depending on conditions. |
|
Take elements from an array along an axis. |
|
Take values from the input array by matching 1d index and data slices. |
Inserting data into arrays#
|
Fill the main diagonal of the given array of any dimensionality. |
|
Replaces specified elements of an array with given values. |
|
Changes elements of an array based on conditional and input values. |
|
Put values into the destination array by matching 1d index and data slices. |
|
Change elements of an array based on conditional and input values. |