numpy.ma.fromfunction()
numpy.ma.fromfunction
-
numpy.ma.fromfunction(function, shape, **kwargs) =
-
Construct an array by executing a function over each coordinate.
The resulting array therefore has a value
fn(x, y, z)
at coordinate(x, y, z)
.Parameters: function : callable
The function is called with N parameters, where N is the rank of
shape
. Each parameter represents the coordinates of the array varying along a specific axis