How to transpose a matrix efficiently?

前端 未结 0 1554
逝去的感伤
逝去的感伤 2020-12-03 07:37

How to transpose a matrix with the following output:

   [3]
[ 7 , 1]
[ 5 , 8, -1]      

to :

 [ 3  7  5  2]
 [1  8 -9]
 [-1  5         


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