numpy.ma.indices()

numpy.ma.indices

numpy.ma.indices(dimensions, dtype=) [source]

Return an array representing the indices of a grid.

Compute an array where the subarrays contain index values 0,1,... varying only along the corresponding axis.

Parameters:

dimensions : sequence of ints

The shape of the grid.

dtype : dtype, optional

Data type of the result.

登录查看完整内容