inner product and matrix product, stop