-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Eigenvectors of a general matrix #2478
Comments
Thanks for reporting. It would be nice to improve the Anyone interested in looking into this? Help would be welcome |
I'm interested in looking into this. I have a question regarding the example given by @lpawela. What does the let Ath = math.multiply( math.exp(math.multiply(math.complex(0,1), -cnt)), AA ); I started digging into mathjs/src/function/matrix/eigs/complexEigs.js Lines 445 to 446 in 99839a8
Here is the full print:
|
Thanks @zishiwu123 for looking into this 💪 |
…vectors Also adds the test case that revealed the problem and corrects the other test case that could have found it except the tolerance had been cranked up very high. Resolves #2478.
It appears that some former author(s) may have neglected the fact that some of the auxiliary functions in complexEigs.js modify their leading argument by side effect, and/or lost track of the transforms that get the current working matrix back to the one originally supplied to the |
As of #2445 eigenvalue calculation seems to work correctly. Yet, sometimes there is a problem with eigenvector computation. Consider the following examples.
This code works correctly and produces correct eigenvalues. But if I change
I get the following error
The expected output would be
The eigenvalues look correct, there is some problem with eigenvectors only. I tried some other examples and it seemed to work in that case. These were:
In this case there are no errors and the results are correct. I tried a handful of other Hermitian matrices and the error did not occur.
The text was updated successfully, but these errors were encountered: