c15fd348686163fbbaf9940086199a85f0f54fb2,scipy/linalg/_matfuncs_inv_ssq.py,,fractional_matrix_power,#Any#Any#,676

Before Change


    s = svd(A, compute_uv=False)
    // Scaling and squaring cannot deal with a singular matrix.
    if not s[-1]:
        return np.zeros_like(A)
    // Compute the condition number relative to matrix inversion.
    k2 = s[0] / s[-1]
    p1 = p - np.floor(p)
    p2 = p - np.ceil(p)

After Change


        return np.zeros_like(A)
    else:
        p1 = p - np.floor(p)
        a = int(np.floor(p))
        b = p1
        R, info = funm(A, lambda x : pow(x, b), disp=False)
        Q = np.linalg.matrix_power(A, a)
        return Q.dot(R)


def _logm_triu(T):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: scipy/scipy
Commit Name: c15fd348686163fbbaf9940086199a85f0f54fb2
Time: 2013-06-20
Author: argriffi@ncsu.edu
File Name: scipy/linalg/_matfuncs_inv_ssq.py
Class Name:
Method Name: fractional_matrix_power


Project Name: githubharald/SimpleHTR
Commit Name: 10781ce4f0b85b5468ed8d8d485412d8cb307ae6
Time: 2021-01-22
Author: harald@newlaptop.com
File Name: src/DataLoaderIAM.py
Class Name: DataLoaderIAM
Method Name: getIteratorInfo


Project Name: NifTK/NiftyNet
Commit Name: f9f1242e23bc4ad0433577b81274b9a6065fbb89
Time: 2017-07-13
Author: eli.gibson@gmail.com
File Name: niftynet/utilities/input_placeholders.py
Class Name: GANPatch
Method Name: full_conditioning_shape


Project Name: mathics/Mathics
Commit Name: 50ad5851edd83940e72b8bbd3e8e4a6acbc7b445
Time: 2016-09-15
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/image.py
Class Name: DiamondMatrix
Method Name: apply


Project Name: mathics/Mathics
Commit Name: 50ad5851edd83940e72b8bbd3e8e4a6acbc7b445
Time: 2016-09-15
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/image.py
Class Name: DiskMatrix
Method Name: apply