Matrix? Column or Row major?


I always mess it up:

Creating a matrix:
matrix = Mathutil.Matrix([1,0,0],[0,1,0],[0,0,1])

           Are the lists the rows or the columns?


i is column?
j is row?

Please help.

Thanks a lot.

Best Regards


Row Major:

For your example, i is a row, j is a column. You can also try printing it out to see a more formatted view:

print matrix