开发者

Efficient way of finding the first occurrance of a number in a 2D scipy array? [duplicate]

This question already has answers here: Is there a NumPy function to return the first index of something in an array? (2开发者_运维问答0 answers) Numpy: find first index of value fast (16 answers) Closed 9 years ago.

I am trying to find the occurance of certain number in a 2D scipy array. The returned value should be the indices of first and second slice like (x,y).

What could be an absolutely efficient way of doing it?

Thanks a lot

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜