Matrix variable arrangement

nuitrack provide flattened matrix

nuitrack::orientation::matrix[9] = 1 2 3 4 5 6 7 8 9

how to arrange these elements in 3x3 matrix. Please check below given 2 options . Which one is correct 1 0r 2 ?

(1).

1 2 3
4 5 6
7 8 9

or

(2).

1 4 7
2 5 8
3 6 9

Hi Asit,

Please refer to this thread: Regarding yaw pitch roll calulation