Assume in a byte machine. A is an array declared as
A[-1:m, 2:n] and each element occupied 3 bytes. The
address of A[3,5] ia at 180 and A[5,3] is at 138. Find
the address of the element A[-1,2]
我用Row major和Column major算出來的結果不一樣
想在此請問一下是怎麼判定是用Column major的@@
是因為A(3,5)=180
V V 這樣判定的嗎?
A(5,3)=138
A(3,5)=138
↑ 那這樣就是Row major嗎?
A(5,3)=180
麻煩各位了!!