I google
filetype:pdf "row-major order" compiler design OR data structures "column-major order"
Still I didn't get accurate results.
Theere are some trash videos on youtube, and almost everyone is deriving hacky way. I want a mathematical way of deriving the address calculation. I would love if they're using different techniques to calculate the address.