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

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


Leave a Reply