Nov-05-2020, 07:55 PM
How about a question that provides enough information and detail that somebody could answer it?
What do you mean by this?
Is this what you are looking for?
And how does any of this relate to the code you provide?
What do you mean by this?
Quote:And here I want to write each column as a rows
Is this what you are looking for?
import numpy as np m = np.array([[1,2,3,4], [4,6,7,8]]) print(m) print(m.T) # or use np.transpose(m) or m.transpose()
Output:[[1 2 3 4]
[4 6 7 8]]
[[1 4]
[2 6]
[3 7]
[4 8]]
If that is what you want to do, what do you mean by this?Quote:and after that I want to add them together.The matrix in the first image isn't square (I don't think), so yow can you add an 8x64 matrix an a 64x8 matrix?
And how does any of this relate to the code you provide?