Is there a way to sum a matrix entry and it's reflection across a diagonal along a given axis in a numpy array?

前端 未结 0 1653
傲寒
傲寒 2021-01-05 10:59

Suppose

A = np.array([[1,2,0,3,5,0,0],[5,6,7,0,9,5,10]])

(The actual data set in this case is a square matrix with a shifted diagonal of zero

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