Hello
I created my code as I want and now I just want to change my matrix.
As a result of my code, I have this matrix:
And here I want to write each column as a rows and after that I want to add them together. As a result I should see this image:
Here is my code(I just add the related part):
I created my code as I want and now I just want to change my matrix.
As a result of my code, I have this matrix:
And here I want to write each column as a rows and after that I want to add them together. As a result I should see this image:
Here is my code(I just add the related part):
………….. ##I didn't paste here because we have just definition of list for triplet in itertools.product([0, 1], repeat=6): arr = np.array([]) for i in range(8): for l in range(8): if l[l] == n[i]: arr = np.append(arr,[1]) else: arr = np.append(arr,[0]) print(arr)How can I change my matrix from first image to second image?