5ded2b734290836869a549a7c0e4be7d46d4bde4,scipy/sparse/linalg/eigen/lobpcg/lobpcg.py,,_b_orthonormalize,#Any#Any#Any#Any#,86

Before Change


    // gramVBV is now R^{-1}.
    blockVectorV = np.dot(blockVectorV, gramVBV)
    if B is not None:
        blockVectorBV = np.dot(blockVectorBV, gramVBV)
    else:
        blockVectorBV = None

    if retInvR:

After Change


    else:
        blockVectorBV = blockVectorBV / normalization
    VBV = blockVectorV.T.conj() @ blockVectorBV
    try:
        // VBV is a Cholesky factor from now on...
        VBV = cholesky(VBV, overwrite_a=True)
        VBV = inv(VBV, overwrite_a=True)
        blockVectorV = blockVectorV @ VBV
        // blockVectorV = (cho_solve((VBV.T, True), blockVectorV.T)).T
        if B is not None:
            blockVectorBV = blockVectorBV @ VBV
            // blockVectorBV = (cho_solve((VBV.T, True), blockVectorBV.T)).T
        else:
            blockVectorBV = None
    except LinAlgError:
        //raise ValueError("Cholesky has failed")
        blockVectorV = None
        blockVectorBV = None
        VBV = None

    if retInvR:
        return blockVectorV, blockVectorBV, VBV, normalization
    else:
        return blockVectorV, blockVectorBV
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scipy/scipy
Commit Name: 5ded2b734290836869a549a7c0e4be7d46d4bde4
Time: 2019-08-08
Author: andrew.knyazev@ucdenver.edu
File Name: scipy/sparse/linalg/eigen/lobpcg/lobpcg.py
Class Name:
Method Name: _b_orthonormalize


Project Name: suavecode/SUAVE
Commit Name: 4f0070f18d657093a7030719354603ea11903aab
Time: 2015-02-05
Author: jmvegh@stanford.edu
File Name: trunk/SUAVE/Components/Energy/Networks/Basic_Battery_Network.py
Class Name: Basic_Battery_Network
Method Name: evaluate


Project Name: mne-tools/mne-python
Commit Name: 880f617b17e02e166a3aebb3b54d9819171b0bbe
Time: 2020-06-07
Author: aprockhill206@gmail.com
File Name: mne/preprocessing/_csd.py
Class Name:
Method Name: compute_current_source_density