Apply linear transformation to a set of vertices
I found a simple solution to this particular problem, if you rotate the pyramid such that the largest face lies on the x-y plane and scale in the z-direction, you can create a regular tetrahedron.

I'm leaving the question open however, because I'm interested in how to apply general linear transformations to meshes.