code: def apply_to_structure(self, structure):
          
          def_struct = structure.copy()
          old_latt = def_struct.lattice.matrix
          new_latt = np.transpose(np.dot(self, np.transpose(old_latt)))
          def_struct.lattice = Lattice(new_latt)
          return def_struct
docs: Apply the deformation gradient to a structure.
  
          Args:
              structure (Structure object): the structure object to
                  be modified by the deformation