Diagonally Replicating elements along numpy array

前端 未结 0 494
无人及你
无人及你 2020-12-10 01:30

Suppose I had an array like this:

 array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 3, 3, 0, 0, 0, 0, 0, 0],
             


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