Given the output of numpy.where(), how to aquire a list of list of the indices

后端 未结 0 732
有刺的猬
有刺的猬 2021-02-01 21:18

I am searching a rather large matrix for zero elements and then want to then loop over the rows and inside each row, over all the indices where I found a zero. numpy.where(M==0)

相关标签:
回答
  • 消灭零回复
提交回复
热议问题