I'm new to Python, so forgive me ahead of time if this is an elementary question, but I searched around and didn't find a satisfactory answer.
I am trying to do the following with NumPy and SciPy:
I,J = x[:,0], x[:1]
Basically, I want all non-zero values ββto be 1 after adding transpose, but I get indexing error messages.
Alternatively, if I could show that the matrix G is symmetric, adding transpose is not required.
Any understanding of any of these approaches would be greatly appreciated.
source share