say I have array1 and it equals
array1=np.zeros((3,3))
that means [[0 0 0]
[0 0 0]
[0 0 0]]
but if I try the following it outputs an error:
array2=np.array[[111,222,333],[444,555,666],[77
array1[1,1]=array2
so how can I replace every single array1 element for a different new array ? for example
for i in range(3):
for j in range (3):
if i-j==0:
array1[i,j]=array2
so it will become 3*9 instead of 3*3 ?
edit1 :expected output for the example above
[[[251, 123, 584],
[251, 123, 584],
[251, 123, 584]],
[[251, 123, 584],
[251, 123, 584],
[251, 123, 584]],
[[251, 123, 584],
[251, 123, 584],
[251, 123, 584]]]