2977b307c5f23c6a4607746697933ea02a60ec16,scipy/sparse/base.py,spmatrix,expm,#spmatrix#,630

Before Change


        tempj = np.empty(shape0, dtype=int)
        R = self.__class__(self.shape)
        for j in range(shape0):
            Rj = spsolve(Q, P[:,j])
            w = np.where(Rj != 0.0)[0]
            tempj.fill(j)
            R = R + self.__class__((Rj[w],(w,tempj[:len(w)])), 
                                    shape=self.shape, dtype=self.dtype)

After Change



        P = U + V  // p_m(A) : numerator
        Q = -U + V // q_m(A) : denominator
        R = solve(Q, P)

        // squaring step to undo scaling
        for i in range(n_squarings):
            R = R.dot(R)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: 2977b307c5f23c6a4607746697933ea02a60ec16
Time: 2012-08-12
Author: scopatz@gmail.com
File Name: scipy/sparse/base.py
Class Name: spmatrix
Method Name: expm


Project Name: robertmartin8/PyPortfolioOpt
Commit Name: a6b8df3bcbc1f4242ac1e0fb94b8889f34cec685
Time: 2020-03-14
Author: martin.robertandrew@gmail.com
File Name: pypfopt/efficient_frontier.py
Class Name: EfficientFrontier
Method Name: min_volatility


Project Name: reinforceio/tensorforce
Commit Name: ee950b503eeed5aca3747a4bcf2a40f624b743a0
Time: 2019-01-21
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/optimizers/multi_step.py
Class Name: MultiStep
Method Name: tf_step


Project Name: sebp/scikit-survival
Commit Name: 12f048d741ba698f63860c4da48c6b85a599b606
Time: 2020-12-31
Author: sebp@k-d-w.org
File Name: sksurv/svm/minlip.py
Class Name: MinlipSurvivalAnalysis
Method Name: _fit