def METHOD_NAME(input):
    """Projection onto postiive semi-definite matrices.
    Args:
        input (array): a two-dimensional matrix.
    Returns:
        array: Result.
    """
    xp = backend.get_array_module(input)
    w, v = xp.linalg.eig((input + xp.conj(input).T) / 2)
    w[w < 0] = 0
    return (v * w) @ v.conjugate().T