numerics

Numerical helper functions for convenience or speed.

Functions

apply_on_boundary(array, func[, only_once, …])

Apply a function of the boundary of an n-dimensional array.

binning(arr, bin_size[, reduction])

Bin an array by a factor.

fast_1d_tensor_mult(ndarr, onedim_arrs[, …])

Fast multiplication of an n-dim array with an outer product.

resize_array(arr, newshp[, offset, …])

Return the resized version of arr with shape newshp.

zscore(arr)

Return arr normalized with mean 0 and unit variance.