creating matrix, which reflex properties of a given one with numpy

后端 未结 0 1360
温柔的废话
温柔的废话 2020-11-27 05:33

when given a N x K matrix with elements from 0 to K, is there an efficient an elegant way to create the following matrix:

       #1 | #2 | ... | #K
----------         


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