214c09c0f018013be994d4c1220bfb5f5264c724,mathics/builtin/linalg.py,Eigenvalues,apply,#Eigenvalues#Any#Any#,722

Before Change



        if matrix.cols != matrix.rows or matrix.cols == 0:
            return evaluation.message("Eigenvalues", "matsq", m)
        eigenvalues = [(from_sympy(v), w) 
                       for (v, w) in matrix.eigenvals().items()]

        eigenvalues.sort(key=lambda v_c: v_c[0].get_sort_key(), reverse=True)
        eigenvalues = [val for (v, w) in eigenvalues for val in [v] * w]

After Change


            except TypeError:
                pass

        return from_sympy([v for (v, c) in eigenvalues for _ in range(c)])


class Eigensystem(Builtin):
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: mathics/Mathics
Commit Name: 214c09c0f018013be994d4c1220bfb5f5264c724
Time: 2020-09-05
Author: pablo-escobar@riseup.net
File Name: mathics/builtin/linalg.py
Class Name: Eigenvalues
Method Name: apply


Project Name: mathics/Mathics
Commit Name: af4b29bd5694e2eec570d67602c4a81b5364b34d
Time: 2020-09-05
Author: pablo-escobar@riseup.net
File Name: mathics/builtin/linalg.py
Class Name: Eigenvalues
Method Name: apply


Project Name: mathics/Mathics
Commit Name: deed936ca0bfa5998af0225fab99c47bd2bc4b6d
Time: 2020-09-06
Author: pablo-escobar@riseup.net
File Name: mathics/builtin/linalg.py
Class Name: Eigenvalues
Method Name: apply