Functional programming

apply_along_axis

Apply a function to 1-D slices along the given axis.

apply_over_axes

Apply a function repeatedly over multiple axes.

piecewise

Evaluate a piecewise-defined function.