看板 Grad-ProbAsk 關於我們 聯絡資訊
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 麻煩各位了!! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.169.114.214 ※ 文章網址: http://www.ptt.cc/bbs/Grad-ProbAsk/M.1414327658.A.337.html ※ 編輯: iloveconic (118.169.114.214), 10/26/2014 20:54:33
HiltonCool: 沒錯! 10/26 23:50
iloveconic: 感謝! 10/27 07:48