Given a matrix A over a finite field K of characteristic p, return the matrix obtained from A by mapping each entry Ai, j to (Ai, j)pe.