fix dims sent to Dgemm

The inputs should have been transposed.  Trying to use this in the
stats package panic’ed, and the BLAS docs indicate that the dims should
be *after* the op.