f30505b836141030f50cdd941f9cbc8f4cda0995,scipy/sparse/linalg/isolve/lgmres.py,,lgmres,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,14

Before Change


                v_new = v_new.copy()

            //     ++ orthogonalize
            hcur = []
            for v in vs:
                alpha = dot(v, v_new)
                hcur.append(alpha)
                v_new = axpy(v, v_new, v.shape[0], -alpha)  // v_new -= alpha*v

After Change


                v_new = axpy(v, v_new, v.shape[0], -alpha)  // v_new -= alpha*v
            hcur[-1] = nrm2(v_new)

            with np.errstate(over="ignore", divide="ignore"):
                // Careful with denormals
                alpha = 1/hcur[-1]

            if np.isfinite(alpha):
                v_new = scal(alpha, v_new)
            else:
                // v_new either zero (solution in span of previous
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: f30505b836141030f50cdd941f9cbc8f4cda0995
Time: 2016-02-29
Author: pav@iki.fi
File Name: scipy/sparse/linalg/isolve/lgmres.py
Class Name:
Method Name: lgmres


Project Name: scipy/scipy
Commit Name: 7151a58d339692c40e1edf3cf9ffe6c052d03001
Time: 2020-02-05
Author: sethtroisi@google.com
File Name: tools/refguide_check.py
Class Name:
Method Name: _run_doctests


Project Name: matplotlib/matplotlib
Commit Name: 157936419c452ed9310a3c79647449895c1ec599
Time: 2017-05-13
Author: vidursatija@gmail.com
File Name: lib/matplotlib/tests/test_colors.py
Class Name:
Method Name: test_colormap_copy