processing_library/arrays/cleaners.py
def calculate_scale_inverse_moment_moment_hessian(scale_scale_moment_moment_psf):
    """Calculate inverse_scale dependent moment moment hessian

    Part of the initialisation for Algorithm 1. Lines 7 - 9

    :param scale_scale_moment_moment_psf: scale_moment_psf [nscales, nscales, nmoment, nmoment]
    :return: scale-dependent moment-moment inverse hessian
    """
    nscales, _, nmoment, _, nx, ny = scale_scale_moment_moment_psf.shape
    hessian_shape = [nscales, nmoment, nmoment]

    scale_moment_moment_hessian = numpy.zeros(hessian_shape)
    scale_inverse_moment_moment_hessian = numpy.zeros(hessian_shape)
    for s in range(nscales):
        scale_moment_moment_hessian[s, ...] = scale_scale_moment_moment_psf[s, s, ..., nx // 2, ny // 2]
        scale_inverse_moment_moment_hessian[s] = numpy.linalg.inv(scale_moment_moment_hessian[s])
    return scale_moment_moment_hessian, scale_inverse_moment_moment_hessian
Calculate inverse_scale dependent moment moment hessian

    Part of the initialisation for Algorithm 1. Lines 7 - 9

    :param scale_scale_moment_moment_psf: scale_moment_psf [nscales, nscales, nmoment, nmoment]
    :return: scale-dependent moment-moment inverse hessian
    
Calculate inverse_scale dependent moment moment hessian
Part of the initialisation for Algorithm 1.
Calculate inverse_scale dependent moment moment hessian Part of the initialisation for Algorithm 1 .
def calculate_scale_inverse_moment_moment_hessian(scale_scale_moment_moment_psf):
    nscales, _, nmoment, _, nx, ny = scale_scale_moment_moment_psf.shape
    hessian_shape = [nscales, nmoment, nmoment]
    scale_moment_moment_hessian = numpy.zeros(hessian_shape)
    scale_inverse_moment_moment_hessian = numpy.zeros(hessian_shape)
    for s in range(nscales):
        scale_moment_moment_hessian[s, ...] = scale_scale_moment_moment_psf[s, s, ..., nx // 2, ny // 2]
        scale_inverse_moment_moment_hessian[s] = numpy.linalg.inv(scale_moment_moment_hessian[s])
    return scale_moment_moment_hessian, scale_inverse_moment_moment_hessian
def calculate_scale_inverse_moment_moment_hessian ( scale_scale_moment_moment_psf ) : nscales , _ , nmoment , _ , nx , ny = scale_scale_moment_moment_psf . shape hessian_shape = [ nscales , nmoment , nmoment ] scale_moment_moment_hessian = numpy . zeros ( hessian_shape ) scale_inverse_moment_moment_hessian = numpy . zeros ( hessian_shape ) for s in range ( nscales ) : scale_moment_moment_hessian [ s , ... ] = scale_scale_moment_moment_psf [ s , s , ... , nx // 2 , ny // 2 ] scale_inverse_moment_moment_hessian [ s ] = numpy . linalg . inv ( scale_moment_moment_hessian [ s ] ) return scale_moment_moment_hessian , scale_inverse_moment_moment_hessian
Calculate inverse_scale dependent moment moment hessian
Part of the initialisation for Algorithm 1.
Calculate inverse_scale dependent moment moment hessian Part of the initialisation for Algorithm 1 .
"""Calculate inverse_scale dependent moment moment hessian

    Part of the initialisation for Algorithm 1. Lines 7 - 9

    :param scale_scale_moment_moment_psf: scale_moment_psf [nscales, nscales, nmoment, nmoment]
    :return: scale-dependent moment-moment inverse hessian
    """
scale-dependent moment-moment inverse hessian
scale - dependent moment - moment inverse hessian
scale_scale_moment_moment_psf
scale_moment_psf [nscales, nscales, nmoment, nmoment]
scale_moment_psf [ nscales nscales nmoment nmoment ]