2344e4105a44fa929aa6fb82597c2ac81bef5171,scipy/sparse/linalg/dsolve/linsolve.py,,spsolve,#Any#Any#Any#Any#,45

Before Change


            // Dense b
            Afactsolve = factorized(A)
            x = empty(b.shape, dtype=A.dtype)
            for j in range(b.shape[1]):
                x[:,j] = Afactsolve(b[:,j])

    return x


def splu(A, permc_spec=None, diag_pivot_thresh=None,

After Change


        x = umf.linsolve(umfpack.UMFPACK_A, A, b_vec,
                         autoTranspose=True)
    else:
        if b_is_vector and b_is_sparse:
            b = b.toarray()
            b_is_sparse = False


        if isspmatrix_csc(A):
            flag = 1  // CSC format
        else:
            flag = 0  // CSR format
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scipy/scipy
Commit Name: 2344e4105a44fa929aa6fb82597c2ac81bef5171
Time: 2014-02-21
Author: pav@iki.fi
File Name: scipy/sparse/linalg/dsolve/linsolve.py
Class Name:
Method Name: spsolve


Project Name: rusty1s/pytorch_geometric
Commit Name: 60956c4194b3db0f5d762b434adf92fef1241186
Time: 2019-08-07
Author: shunwang.gong16@imperial.ac.uk
File Name: torch_geometric/utils/geodesic.py
Class Name:
Method Name: geodesic_distance


Project Name: RaRe-Technologies/gensim
Commit Name: a31eab99dfbc6dcb7fe2ef149c59a30910adbbbd
Time: 2011-05-15
Author: radimrehurek@seznam.cz
File Name: src/gensim/similarities/docsim.py
Class Name: SparseMatrixSimilarity
Method Name: getSimilarities