change the array operator to matrix operator