processing_library/arrays/cleaners.py
def calculate_scale_moment_principal_solution(smresidual, ihsmmpsf):
    """ Calculate the principal solution in moment space for each scale

    Lines 20 - 26

    :param smresidual: scale-dependent moment residual [nscales, nmoment, nx, ny]
    :param ihsmmpsf: Inverse of scale dependent moment moment Hessian
    :return: Decoupled residual images [nscales, nmoment, nx, ny]
    """
    # ihsmmpsf: nscales, nmoment, nmoment
    # smresidual: nscales, nmoment, nx, ny
    smpsol = numpy.einsum("smn,smxy->snxy", ihsmmpsf, smresidual)

    return smpsol
 Calculate the principal solution in moment space for each scale

    Lines 20 - 26

    :param smresidual: scale-dependent moment residual [nscales, nmoment, nx, ny]
    :param ihsmmpsf: Inverse of scale dependent moment moment Hessian
    :return: Decoupled residual images [nscales, nmoment, nx, ny]
    
Calculate the principal solution in moment space for each scale
Lines 20 - 26
Calculate the principal solution in moment space for each scale Lines 20 - 26
def calculate_scale_moment_principal_solution(smresidual, ihsmmpsf):
    smpsol = numpy.einsum("smn,smxy->snxy", ihsmmpsf, smresidual)
    return smpsol
def calculate_scale_moment_principal_solution ( smresidual , ihsmmpsf ) : smpsol = numpy . einsum ( "smn,smxy->snxy" , ihsmmpsf , smresidual ) return smpsol
Calculate the principal solution in moment space for each scale
Lines 20 - 26
Calculate the principal solution in moment space for each scale Lines 20 - 26
""" Calculate the principal solution in moment space for each scale

    Lines 20 - 26

    :param smresidual: scale-dependent moment residual [nscales, nmoment, nx, ny]
    :param ihsmmpsf: Inverse of scale dependent moment moment Hessian
    :return: Decoupled residual images [nscales, nmoment, nx, ny]
    """ # ihsmmpsf: nscales, nmoment, nmoment # smresidual: nscales, nmoment, nx, ny
Decoupled residual images [nscales, nmoment, nx, ny]
Decoupled residual images [ nscales nmoment nx ny ]
smresidual
scale-dependent moment residual [nscales, nmoment, nx, ny]
scale - dependent moment residual [ nscales nmoment nx ny ]
ihsmmpsf
Inverse of scale dependent moment moment Hessian
Inverse of scale dependent moment moment Hessian