How to get all values in an array whose added index size is greater than value?

前端 未结 0 751
遥遥无期
遥遥无期 2021-02-12 17:22

I have a 5x5 ndarray and want to sum up all values whose added index size is greater than a given value.

For example, I have the following array

x = np.ran         


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