Assorted functionsΒΆ

angle

Return the angle of the complex argument.

apply_where

argpartition

Perform an indirect partition along the given axis.

at

Update operations for read-only arrays.

atleast_nd

Recursively expand the dimension of an array to at least ndim.

broadcast_shapes

Compute the shape of the broadcasted arrays.

cov

Estimate a covariance matrix (or a stack of covariance matrices).

create_diagonal

Construct a diagonal array.

default_dtype

Return the default dtype for the given namespace and device.

diag_indices

Return the indices to access the main diagonal of an array.

expand_dims

Expand the shape of an array.

isclose

Return a boolean array where two arrays are element-wise equal within a tolerance.

isin

Determine whether each element in a is present in b.

kron

Kronecker product of two arrays.

nan_to_num

Replace NaN with zero and infinity with large finite numbers (default behaviour).

nunique

Count the number of unique elements in an array.

one_hot

One-hot encode the given indices.

pad

Pad the input array.

partition

Return a partitioned copy of an array.

searchsorted

Find indices where elements should be inserted to maintain order.

setdiff1d

Find the set difference of two arrays.

sinc

Return the normalized sinc function.

tril_indices

Return the indices of the lower triangle of an (n, m) array.

triu_indices

Return the indices of the upper triangle of an (n, m) array.

union1d

Find the union of two arrays.

unravel_index

Convert a flat index or array of flat indices into a tuple of coordinate arrays.