add transpose for matrices in gemv and gemm