gemm support transA and transB, and first input is constance.