Matmul differs from dot in two important ways. The function numpy matmul is a function used for matrix multiplication. After matrix multiplication the appended 1 is removed.