array support in matrix product