def conjugate_row(row, K):
    """
    Returns the conjugate of a row element-wise

    Examples
    ========

    >>> from sympy.matrices.densetools import conjugate_row
    >>> from sympy import ZZ
    >>> a = [ZZ(3), ZZ(2), ZZ(6)]
    >>> conjugate_row(a, ZZ)
    [3, 2, 6]
    """
    result = []
    for r in row:
        try:
            result.append(r.conjugate())
        except __HOLE__:
            result.append(r)
    return result
dataset/ETHPy150Open sympy/sympy/sympy/matrices/densetools.py/conjugate_row