how to repeat the elements of a 2d array n times without converting it to a list?

后端 未结 0 1559
孤独总比滥情好
孤独总比滥情好 2021-01-30 10:37

I have an array of a = np.array([[1,2],[3,4]]) I am looking for a way to repeat each element for a certain times (lets say 3 times) to get the following array

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