cupy.fromfunction#

cupy.fromfunction(*args, **kwargs)[source]#

Construct an array by executing a function over each coordinate.

Note

Uses NumPy’s fromfunction and coerces the result to a CuPy array.