41a383ea63d10b58974756bba8101ea6a65284e0,scipy/linalg/_matfuncs_sqrtm.py,,_sqrtm_triu,#Any#Any#,29

Before Change


    if keep_it_real:
        R = np.zeros_like(T)
    else:
        R = np.zeros((n, n), dtype=complex)
        T_diag = T_diag.astype(complex)
    
    // Take square roots of the diagonal of the triangular matrix.
    R[np.diag_indices(n)] = np.sqrt(T_diag)

    // Compute the number of blocks to use; use at least one block.
    nblocks = max(n // blocksize, 1)

After Change


    keep_it_real = (not _has_complex_dtype_char(T)) and (np.min(T_diag) >= 0)
    if not keep_it_real:
        T_diag = T_diag.astype(complex)
    R = np.diag(np.sqrt(T_diag))

    // Compute the number of blocks to use; use at least one block.
    n, n = T.shape
    nblocks = max(n // blocksize, 1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: scipy/scipy
Commit Name: 41a383ea63d10b58974756bba8101ea6a65284e0
Time: 2013-06-20
Author: argriffi@ncsu.edu
File Name: scipy/linalg/_matfuncs_sqrtm.py
Class Name:
Method Name: _sqrtm_triu


Project Name: SheffieldML/GPy
Commit Name: d00d10952c9e634c3ab498029c427f839b25a0be
Time: 2013-03-06
Author: james.hensman@gmail.com
File Name: GPy/kern/coregionalise.py
Class Name: coregionalise
Method Name: dKdiag_dtheta


Project Name: SheffieldML/GPy
Commit Name: bea74ac5231e47cce34170273771fd61a39e6b73
Time: 2014-03-17
Author: acq11ra@sheffield.ac.uk
File Name: GPy/likelihoods/mixed_noise.py
Class Name: MixedNoise
Method Name: covariance_matrix


Project Name: pymc-devs/pymc3
Commit Name: 5e329a5e3e9453ae0800ab438d2fa9f991f35a00
Time: 2017-06-02
Author: junpeng.lao@unifr.ch
File Name: pymc3/examples/LKJ_correlation.py
Class Name:
Method Name: