Maybe you meant row major, not raw major? Anyway I see neither major in that code. Not even a captain. Just old linear memory.