Create diagonal matrix from rows of a 2D matrix without for loop

后端 未结 0 576
傲寒
傲寒 2021-01-31 10:04

Suppose that you have a mxn matrix A and want to create m diagonal matrices, each of which is from rows of A and thus has the shape nxn. The resulting

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