Matrix interface for multidimensional arrays