Reputation: 13
I am trying to double the size of a matrix without changing the values. Is there any dedicated function to do that? Here, I need to convert the matrix a to matrix b.
a = np.array([[1,2],
[3,4]])
b = np.array([[1,1,2,2],
[1,1,2,2],
[3,3,4,4],
[3,3,4,4]])
Upvotes: 1
Views: 61