chainerx.fromfunction¶
- chainerx.fromfunction(function, shape, **kwargs)¶
Constructs an array by executing a function over each coordinate.
This is currently equivalent to
numpy.fromfunction()
wrapped bychainerx.array()
, given the device argument.Note
Keywords other than
dtype
anddevice
are passed to`function`
.See also