a8b5873fd46a9f518f45d8376745a30c97c3cf6e,scipy/sparse/linalg/matfuncs.py,,_smart_matrix_product,#Any#Any#Any#Any#,142

Before Change


    f = None
    if structure == UPPER_TRIANGULAR and A.dtype == B.dtype:
        if not isspmatrix(A) and not isspmatrix(B):
            if A.dtype == np.float32:
                f = blas.strmm
            elif A.dtype == np.float64:
                f = blas.dtrmm
            elif A.dtype == np.complex64:
                f = blas.ctrmm
            elif A.dtype == np.complex128:
                f = blas.ztrmm
    if f is not None:
        if alpha is None:
            alpha = 1.
        out = B.copy()

After Change


    f = None
    if structure == UPPER_TRIANGULAR:
        if not isspmatrix(A) and not isspmatrix(B):
            f, = scipy.linalg.get_blas_funcs(("trmm",), (A, B))
    if f is not None:
        if alpha is None:
            alpha = 1.
        out = B.copy()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: scipy/scipy
Commit Name: a8b5873fd46a9f518f45d8376745a30c97c3cf6e
Time: 2013-09-17
Author: argriffi@ncsu.edu
File Name: scipy/sparse/linalg/matfuncs.py
Class Name:
Method Name: _smart_matrix_product


Project Name: RaRe-Technologies/gensim
Commit Name: e20d7b28bb811000edd0790fb72df9e68875a063
Time: 2010-07-31
Author: piskvorky@92d0401f-a546-4972-9173-107b360ed7e5
File Name: src/gensim/similarities/docsim.py
Class Name: MatrixSimilarity
Method Name: getSimilarities


Project Name: RaRe-Technologies/gensim
Commit Name: af3357375250903ecb380051915e15ba721c42f4
Time: 2010-07-31
Author: radimrehurek@seznam.cz
File Name: src/gensim/similarities/docsim.py
Class Name: MatrixSimilarity
Method Name: getSimilarities