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

前端 未结 0 885
野的像风
野的像风 2021-02-12 16:44

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         


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