|
 |
"Kenneth" <kdw### [at] gmail com> wrote:
> That is very clever, and will go into my 'bag of tricks'. Thanks.
The best part is that the sub-arrays don't all need to be the same size.
#declare A = array[3];
#declare A[0] = array[4];
#declare A[1] = array[9];
#declare A[2] = array[16];
and if you don't know how big they are, e.g. you've got some macro that fills
them for you, you can just do
#for (I, 0, 2)
#declare N = dimension_size(A[I], 1);
#for (J, 0, N-1)
// do mad pov stuff with A[I][J]
#end
#end
Bill
Post a reply to this message
|
 |