ich würde gerne eine 5x5 Matrix in eine 10x10 Matrix oder eine 100x100 Matrix usw. umformen. Zur Veranschaulichung mal ein kleines Beispiel:
Code: Alles auswählen
x = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9])
print(x)
print(x.reshape(3, 3))
[1 2 3 4 5 6 7 8 9]
[[1 2 3]
[4 5 6]
[7 8 9]]
Code: Alles auswählen
[[1 1 2 2 3 3]
[1 1 2 2 3 3]
[4 4 5 5 6 6]
[4 4 5 5 6 6]
[7 7 8 8 9 9]
[7 7 8 8 9 9]
Gruß
Marvin