Indexing routines#
Generating index arrays#
|
Return the indices of the elements that are non-zero. |
|
Return elements, either from x or y, depending on condition. |
|
Returns an array representing the indices of a grid. |
|
Return the indices to access (n, n) arrays, given a masking function. |
|
Returns the indices of the lower triangular matrix. |
|
Returns the indices for the lower-triangle of arr. |
|
Returns the indices of the upper triangular matrix. |
|
Returns indices for the upper-triangle of arr. |
|
Construct an open mesh from multiple sequences. |
|
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. |
Indexing-like operations#
|
Takes elements of an array at specified indices along an axis. |
|
Take values from the input array by matching 1d index and data slices. |
|
|
|
Returns selected slices of an array along given axis. |
|
Returns a diagonal or a diagonal array. |
|
Returns specified diagonals. |
|
Return an array drawn from elements in choicelist, depending on conditions. |
|
Create a view into the array with the given shape and strides. |
Inserting data into arrays#
|
Change elements of an array based on conditional and input values. |
|
Replaces specified elements of an array with given values. |
|
Put values into the destination array by matching 1d index and data slices. |
|
Changes elements of an array inplace, based on a conditional mask and input values. |
|
Fills the main diagonal of the given array of any dimensionality. |
Iterating over arrays#
|
Flat iterator object to iterate over arrays. |