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

Before Change


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

            if hcur[-1] == 0:
                // Exact solution.
                break

After Change


                alpha = dot(v, v_new)
                hcur[i] = alpha
                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: matplotlib/matplotlib
Commit Name: aa5537af653263ff6ed124d2f634d6e372584efa
Time: 2018-06-10
Author: jklymak@gmail.com
File Name: lib/matplotlib/axis.py
Class Name: Axis
Method Name: get_tightbbox


Project Name: dPys/PyNets
Commit Name: 166bd6bf573e23a0350d37e3a24f439b4b3e31ea
Time: 2021-02-08
Author: dpisner@utexas.edu
File Name: pynets/stats/embeddings.py
Class Name:
Method Name: build_masetome