Sunday, October 26, 2008

Row order location of an element

From slide 13 of section 6 IV

In row order, the location of ai,j in Amxn is

Base + (i*n+j)*element_size

Note this will get you to the first field within that element. If you want to get to an element that is part of that element then you also need to offset to locate that as well.

No comments: