c06bd99c7cc5f2a7a284ea7ab315c49c4c8cf518,scipy/linalg/decomp.py,,cdf2rdf,#Any#Any#,1273

Before Change


    idx_im = argwhere(iscomplex(w))

    // check if all complex eigenvalues have conjugate pairs
    if len(idx_im[::2, 0]) != len(idx_im[1::2, 0]):
        raise ValueError("expected complex-conjugate pairs of eigenvalues")

    // all eigenvalues to diagonal form

After Change


    // get indices for each first pair of complex eigenvalues
    complex_mask = iscomplex(w)
    n_complex = complex_mask.sum(axis=-1)
    idx_im = argwhere(complex_mask)

    // check if all complex eigenvalues have conjugate pairs
    if not (n_complex % 2 == 0).all():
        raise ValueError("expected complex-conjugate pairs of eigenvalues")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scipy/scipy
Commit Name: c06bd99c7cc5f2a7a284ea7ab315c49c4c8cf518
Time: 2018-03-24
Author: wieser.eric@gmail.com
File Name: scipy/linalg/decomp.py
Class Name:
Method Name: cdf2rdf


Project Name: AIRLab-POLIMI/mushroom
Commit Name: c0e6857ca31934604a57fcc84d11107d844e724f
Time: 2017-08-24
Author: carlo.deramo@gmail.com
File Name: PyPi/utils/replay_memory.py
Class Name: ReplayMemory
Method Name: get


Project Name: AIRLab-POLIMI/mushroom
Commit Name: c702968d83449f3a6aad3a5cec6cc0b2aafd78c5
Time: 2017-09-27
Author: carloderamo@gmail.com
File Name: mushroom/algorithms/dqn.py
Class Name: RDQN
Method Name: fit