Matrix? Column or Row major?

Hi,

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?

Object.mat[i][j]

i is column?
j is row?

Please help.

Thanks a lot.

Best Regards

Gerhard

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