04-06-2016, 01:16 PM
a->cDims will be 2.
And there will be a->rgsabound[0] and a->rgsabound[1]. They define each dimension. Maybe swapped, ie 0 is the second dimension, 1 is the first, don't remember.
Then pe=p+a->rgsabound[0].cElements*rgsabound[1].cElements.
All elements are in the single memory block p that is only logically divided into dimensions.
And there will be a->rgsabound[0] and a->rgsabound[1]. They define each dimension. Maybe swapped, ie 0 is the second dimension, 1 is the first, don't remember.
Then pe=p+a->rgsabound[0].cElements*rgsabound[1].cElements.
All elements are in the single memory block p that is only logically divided into dimensions.