If column-major order is used, how is the following matrix stored in memory?

Q & ACategory: Data StructureIf column-major order is used, how is the following matrix stored in memory?
Admin Staff asked 4 years ago

If column-major order is used, how is the following matrix stored in memory?
a b c
d e f
g h i
a) ihgfedcba
b) abcdefghi
c) cfibehadg
d) adgbehcfi

1 Answers
Admin Staff answered 4 years ago

d) adgbehcfi