docs: def from_forward(cls, fmodel, **kwargs):
          """Construst an inverse model from a forward model and constraints.
          """
          im = cls(fmodel.dim_x, fmodel.dim_y, **kwargs)
          im.fmodel = fmodel
          return im