def METHOD_NAME(cls, op):
    x, y = op.x, op.y
    if x is y:
        S = cosine_similarity(x)
    else:
        S = cosine_similarity(x, y)
    S = (S * -1) + 1
    S = mt.clip(S, 0, 2)
    if x is y:
        mt.fill_diagonal(S, 0.0)
    return [(yield from recursive_tile(S))]