Jan-24-2022, 01:07 AM
Helloooo :)
I solved the problem. It is quite simple:
I solved the problem. It is quite simple:
count = 0 rho_final_arr = np.array(rho_final) rho_i_arr=np.array(rho_i) for row in range(8): for column in range(8): if row==0 and column==0: count = 0 else: count+=1 if count == 64: count = 63 m = np.zeros((1,64)) m[0][count]=1 if (rho_final_arr[row][column]==rho_i_arr[row][column]): rho_i[row][column]=m rho_final[row][column]=m else: print('heyo') i, j = np.where(rho_final_arr == rho_i[row][column]) rho_i[row][column]=m rho_final[int(i)][int(j)] = m