Functional programming#

Note

cupy.vectorize applies JIT compiler to the given Python function. See JIT kernel definition for details.

apply_along_axis(func1d, axis, arr, *args, ...)

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

apply_over_axes(func, a, axes)

Apply a function repeatedly over multiple axes.

vectorize(pyfunc[, otypes, doc, excluded, ...])

Generalized function class.

piecewise(x, condlist, funclist)

Evaluate a piecewise-defined function.