Python: help needed with numpy.diag function

后端 未结 0 1531
夕颜
夕颜 2021-02-13 21:32

I have a numpy matrix M with variations along the rows and columns. The column data from M I want to place on the diagonal of a new matrix P. For example:

for i i         


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