ff03f94e8f878365ed54b14f46ca10f6e71b1966,scipy/sparse/linalg/matfuncs.py,,_expm,#Any#Any#,609

Before Change



        // Avoid indiscriminate casting to ndarray to
        // allow for sparse or other strange arrays
        if isspmatrix(A):
            return A.__class__(out)

        return np.array(out)

After Change



        // Avoid indiscriminate casting to ndarray to
        // allow for sparse or other strange arrays
        if isspmatrix(A) or is_pydata_spmatrix(A):
            return A.__class__(out)

        return np.array(out)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: scipy/scipy
Commit Name: ff03f94e8f878365ed54b14f46ca10f6e71b1966
Time: 2019-11-16
Author: pav@iki.fi
File Name: scipy/sparse/linalg/matfuncs.py
Class Name:
Method Name: _expm


Project Name: scipy/scipy
Commit Name: ff03f94e8f878365ed54b14f46ca10f6e71b1966
Time: 2019-11-16
Author: pav@iki.fi
File Name: scipy/sparse/linalg/matfuncs.py
Class Name:
Method Name: _solve_P_Q


Project Name: scipy/scipy
Commit Name: ff03f94e8f878365ed54b14f46ca10f6e71b1966
Time: 2019-11-16
Author: pav@iki.fi
File Name: scipy/sparse/linalg/matfuncs.py
Class Name:
Method Name: inv


Project Name: scipy/scipy
Commit Name: 0f87272dda4e6c344cd6bdfb306a308da97c514a
Time: 2019-11-16
Author: pav@iki.fi
File Name: scipy/sparse/linalg/dsolve/linsolve.py
Class Name:
Method Name: spsolve


Project Name: scipy/scipy
Commit Name: 2d791f9d83c6f995ce37396363f58cbe2ea662d0
Time: 2019-11-16
Author: pav@iki.fi
File Name: scipy/sparse/linalg/interface.py
Class Name:
Method Name: aslinearoperator