Since those routines compute Aᵀ·B, the number of rows of the output is equal to the number of columns of A.