Improve performance by transposing the operator matrices.

This change is not currently applied in the OpenMP backend.