Numerical operations#

localmax

Find local maxima in an array

localmin

Find local minima in an array

peak_pick

Use a flexible heuristic to pick peaks in a signal.

softmask

Robustly compute a soft-mask operation.

count_unique

Count the number of unique values along a given axis.

is_unique

Determine if the input consists of all unique values along a given axis.

nnls

Non-negative least squares.

cyclic_gradient

Estimate the gradient of a function over a uniformly sampled, periodic domain.

dtype_c2r

Find the real numpy dtype corresponding to a complex dtype.

dtype_r2c

Find the complex numpy dtype corresponding to a real dtype.

buf_to_float

Convert an integer buffer to floating point values.

tiny

Compute the tiny-value corresponding to an input's data type.

abs2

Compute the squared magnitude of a real or complex array.

phasor

Construct a complex phasor representation from angles.

sync

Aggregate a multi-dimensional array between specified boundaries.

interp_broadcast

Broadcast two arrays using interpolation

axis_sort

Sort an array along its rows or columns.

normalize

Normalize an array along a chosen axis.

sparsify_rows

Return a row-sparse array approximating the input