Skip to content

eigs function b̶r̶o̶k̶e̶n̶ has a confusing interface #3014

@been-jamming

Description

@been-jamming

math.eigs produces correct eigenvalues with incorrect eigenvectors in some cases. Note that the example in the documentation still seems to give the correct results.

To Reproduce
Execute the following:

T = [[1, 2], [4, 3]];
ans = math.eigs(T);
ans.vectors[0];

Result:

Array [ -0.9701425001453324, -2.4253562503633317 ]

Expected:

Array [-2, 1]

Edit: It looks like the correct eigenvector is actually [ -1, 1 ]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions