Cannot transpose the matrix with x.transpose()
Helllo, im having a probles with matrixes that i do during my studies, i try to transpose the matrixes but it gives me the error
``` AttributeError Traceback (most recent call last) Cell In[17], line 1 ----> 1 A.transpose()
AttributeError: 'NoneType' object has no attribute 'transpose' ```
an the said matrix looks like that A = matrix(2,3,[8,-2,3,5,1,-4])
Please provide more context, like any lines that might have (re)defined
A
. If I run consecutive commandsA = matrix(2,3,[8,-2,3,5,1,-4])
andA.transpose()
, it works as expected.NoneType
suggests thatA
was redefined asNone
at certain point.Right, perhaps by a command like
A = A.swap_columns(0,2)
. That's why I am asking for more information.