Preallocate a result area for the matrix multiplication reference