Convert packet table index to linear index
[row,ix] = pkt2ix(d,b,k,D,n)
1-d packet table index
shape of packet table
linear position in packet table
row in packet table