xoa.core.num

xoa.core.num#

Low level numeric utilities

The numerical inputs and outputs of all these routines are of scalar or numpy.ndarray type.

Functions

as_float_array(arr)

Convert input to at least 1D float array, useful for numba accelerated functions

get_iminmax(data1d)

The first and last non nan values for a 1d array

ravel_index(ii, shape)

unravel_index(i, shape)