def _vector_vector_cos(v1, v2, assure_consistency=False):
    """
    Faster calculation for vector pair cosine similarity.
    """
    return v1.dot(v2.transpose()) / (v1.norm() * v2.norm())
dataset/ETHPy150Open jimmycallin/pydsm/pydsm/similarity.py/_vector_vector_cos/original