Calculation of the shear modulus of a two-dimensional vortex lattice.