getDualMatrices function

Prepare intra-array matrices for selected arrays