Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Singular case not handled #85

Open
kriffe opened this issue Mar 9, 2019 · 0 comments
Open

Singular case not handled #85

kriffe opened this issue Mar 9, 2019 · 0 comments

Comments

@kriffe
Copy link

kriffe commented Mar 9, 2019

For some inputs to eig solver the QR francis results in an error. See failing example below

const matrix = [
      [0, 0, 1, 0],
      [0, 0, 0, 1],
      [-1.0000000000000002, -0, -0, -0],
      [-0, -1.0000000000000002, -0, -0],
    ]
const result = numeric.eig(matrix)

Results in internal error: eig: internal error thrown at https://github.com/sloisel/numeric/blob/master/src/numeric.js#L1361

Solvability in wolframalpha: https://www.wolframalpha.com/input/?i=eigenvalue++%5B+%5B0,+0,+1,+0%5D,+%5B0,+0,+0,+1%5D,+%5B-1.0000000000000002,+-0,+-0,+-0%5D,+%5B-0,+-1.0000000000000002,+-0,+-0%5D%5D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant