numpy.ma.apply_along_axis()
numpy.ma.apply_along_axis
-
numpy.ma.apply_along_axis(func1d, axis, arr, *args, **kwargs)
[source] -
Apply a function to 1-D slices along the given axis.
Execute
func1d(a, *args)
wherefunc1d
operates on 1-D arrays anda
is a 1-D slice ofarr
alongaxis
.Parameters: func1d : function
This function should accept 1-D arrays. It is applied to 1-D slices of
arr
along