code: def transform_lattice(self, lattice):
          # type: (Lattice) -> Lattice
          
          return Lattice(np.matmul(lattice.matrix, self.P))
docs: Takes a Lattice object and transforms it.
          :param lattice: Lattice
          :return: