import torch


def _zeta(Beta):
    """
    Exponent in MM-optimization of each factorized matrix.
    Used for an l2 update step.
    """
    if Beta <= 2:
        return torch.div(1,3-Beta)
    else:
        return torch.div(1,Beta-1)