97070a67bafcf2ecf4ecde78f3b8d5617feb3ebd,scipy/sparse/linalg/matfuncs.py,,_ell,#Any#Any#,628

Before Change


    // can be computed exactly and efficiently.
    // Explicitly make a column vector so that this works when A is a
    // numpy matrix (as opposed to ndarray or sparse matrix).
    v = np.ones((A.shape[0], 1), dtype=float)
    M = abs(A).T
    for i in range(p):
        v = M.dot(v)
    A_abs_one_norm = max(v)

    // Treat zero norm as a special case.
    if not A_abs_one_norm:
        return 0

After Change


        A value related to a bound.

    
    if len(A.shape) != 2 or A.shape[0] != A.shape[1]:
        raise ValueError("expected A to be like a square matrix")

    p = 2*m + 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: 97070a67bafcf2ecf4ecde78f3b8d5617feb3ebd
Time: 2013-09-16
Author: argriffi@ncsu.edu
File Name: scipy/sparse/linalg/matfuncs.py
Class Name:
Method Name: _ell


Project Name: automl/auto-sklearn
Commit Name: 8481b6966b58cb9b97698abfbf3b01fdc511c3dc
Time: 2015-02-13
Author: kleinaa@cs.uni-freiburg.de
File Name: AutoML2015/ensemble_script.py
Class Name:
Method Name: main


Project Name: cornellius-gp/gpytorch
Commit Name: 529456c17464022d42e1c343bec52f2d4d77e79b
Time: 2018-10-29
Author: balandat@fb.com
File Name: gpytorch/likelihoods/noise_models.py
Class Name: HomoskedasticNoise
Method Name: forward


Project Name: onnx/onnx-tensorflow
Commit Name: 465a02819ebff33ee014ebed17a1b70f66310fcb
Time: 2018-03-04
Author: fumihwh@gmail.com
File Name: onnx_tf/backend.py
Class Name: TensorflowBackend
Method Name: _bin_op


Project Name: has2k1/plotnine
Commit Name: 58756c9467c5bce5e47ad1af8d7b3e634fa437b6
Time: 2020-12-15
Author: has2k1@gmail.com
File Name: plotnine/stats/stat_boxplot.py
Class Name: stat_boxplot
Method Name: compute_group