Transform matrix columns into diagonal matrices and wrap them up without for loops

前端 未结 0 829
忘掉有多难
忘掉有多难 2020-12-05 20:27

I have M vectors with N entries each (MxN matrix, if you will):

A = [A1, A2, ... , AN]
B = [B1, B2, ... , BN]
...
Z = [         


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