Which of the following expressions accesses the (i,j) th entry of a matrix stored in column major form?

1.8 Which of the following expressions accesses the (i,j) th entry of a matrix stored in column major form?
A) n*(i-1) + j
B) m*(j-1) + i
C) m*(n-j) + j
D) n*(m-i) + j


Leave a Reply