c_ |
Translates slice objects to concatenation along the second axis. |
r_ |
Translates slice objects to concatenation along the first axis. |
s_ |
A nicer way to build up index tuples for arrays. |
nonzero(a) |
Return the indices of the elements that are non-zero. |
where(condition, x) |
Return elements, either from x or y, depending on condition. |
indices(dimensions[, dtype]) |
Return an array representing the indices of a grid. |
ix_(*args) |
Construct an open mesh from multiple sequences. |
ogrid |
nd_grid instance which returns an open multi-dimensional “meshgrid”. |
unravel_index(x, dims) |
Convert a flat index to an index tuple for an array of given shape. |
diag_indices(n[, ndim]) |
Return the indices to access the main diagonal of an array. |
diag_indices_from(arr) |
Return the indices to access the main diagonal of an n-dimensional array. |
mask_indices(n, mask_func[, k]) |
Return the indices to access (n, n) arrays, given a masking function. |
tril_indices(n[, k]) |
Return the indices for the lower-triangle of an (n, n) array. |
tril_indices_from(arr[, k]) |
Return the indices for the lower-triangle of arr. |
triu_indices(n[, k]) |
Return the indices for the upper-triangle of an (n, n) array. |
triu_indices_from(arr[, k]) |
Return the indices for the upper-triangle of an (n, n) array. |