def conjugate_row(row, K):
 result = []
 for r in row:
  try:
   result.append(r.conjugate())
  except AttributeError:
   result.append(r)
 return result

def conjugate_row ( row , K ) : result = [ ] for r in row : try : result . append ( r . conjugate ( ) ) except AttributeError : result . append ( r ) return result
returns the conjugate of a row element-wise examples .