For quaternion read wikipedia articles for enlightenment or not.
You misunderstand the python. Matrix is a class, transpose is a method of the class.
matrix1 = Matrix([1,1,1],[0,1,0],[1,0,0]) defines an instance of the class.
therefore the method applied to the instance is:
Note: blender actually does call these instance methods in the documentation.
The documentation says that this sets the matrix to its transpose and returns none.
is not going to print anything
will transpose matrix1 in place, as you should be able to see by doing this
If you want to transpose a copy then first do this:
matrix2 = matrix1.copy()
The documentation explains all the methods you can use on the instances of Matrix plus these “magic” methods:
mat + mat
mat - mat
mat * float/int
mat * vec
mat * mat