-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Eigenvalues of a general matrix #2439
Comments
This is definitely a bug. Thank you so much for reporting! Someone will look at it as soon as they are able, but as you can see, there is a big backlog; any suggestions as to how to address it or better yet a PR fixing it would definitely be welcome. |
@gwhitney playing around with the console in my browser I think I found the issue. These lines mathjs/src/function/matrix/eigs/complexEigs.js Lines 67 to 68 in 38d9466
mathjs/src/function/matrix/eigs/complexEigs.js Lines 90 to 91 in 38d9466
mathjs/src/function/matrix/eigs/complexEigs.js Lines 96 to 97 in 38d9466
mathjs/src/function/matrix/eigs/complexEigs.js Lines 108 to 109 in 38d9466
c and a complex rowDivRadix . I don't know much about javascript, and I don't have a proper environment to prepare and submit a PR, but my suggestion would be to change zero and one to a real value. Would that work, or will it break something?
|
This change fixes a typing problem in complexEigs.js in which real-valued norms were inadvertently being typed as complex numbers. Resolves josdejong#2439
By Jove that's it. All of the norms and radices in this part of the algorithm are intended to be real even in the case of complex entries. Fixing the types prevented the error from being thrown, and produced the correct eigenvalues, Hopefully we can get the PR above merged reasonably quickly and a new release to fix this serious bug. Thank you so much Łukasz for your help. And @josdejong let me know if there's anything in particular I should do to expedite this fix. |
This change fixes a typing problem in complexEigs.js in which real-valued norms were inadvertently being typed as complex numbers. Resolves #2439 Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
The fix is published now in |
I'm trying to visualize the numerical range of a matrix on a website. For this, I need to calculate the eigenvalues of a general matrix with complex elements. This should be available since #1743 was merge. Yet, I get the following errors.
The first two line work as expected, the last one results in the following error
Am I doing something? Did I misunderstand the nature of #1743?
The text was updated successfully, but these errors were encountered: