[
https://issues.apache.org/jira/browse/MATH-1557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17215057#comment-17215057
]
Randy Strauss commented on MATH-1557:
-------------------------------------
Here's a simple 3x3 example, for matrix:
5., -3., 0.
3., 4., 0.
5., 10., 10.
MatLab produces:
[vectors, values] = eig([5,-3,0; 3,4,0; 5,10,10]);
vectors
0.0000 + 0.0000i , 0.3732 + 0.1956i , 0.3732 - 0.1956i
0.0000 + 0.0000i , 0.2551 - 0.3354i , 0.2551 + 0.3354i
1.0000 + 0.0000i , -0.8031 + 0.0000i , -0.8031 + 0.0000i
Apache math produces:
: -0.1989, 0.4150, -0.0000
: 0.3760, 0.2653, 0.0000
: -0.0314, -0.8766, 2.0426
FYI: MatLab's eigenvalues:
10, 4.5 + 2.958i, 4.5 - 2.958i
Apache math's are the same, but a different order:
4.5 + 2.958i, 4.5 - 2.958i, 10
> Enhancement request: Complex Eigen Vectors
> ------------------------------------------
>
> Key: MATH-1557
> URL: https://issues.apache.org/jira/browse/MATH-1557
> Project: Commons Math
> Issue Type: Improvement
> Affects Versions: 3.6.1
> Reporter: Randy Strauss
> Priority: Major
> Attachments: real-eigen-vectors-test-case.txt
>
>
> I have a real hamiltonian matrix and need to get complex eigenvalues and
> eigenvectors, just like MatLab produces (I'm moving code from MatLab to Java).
> I put a test case in the real-eigen-vectors-test-case.txt file, attached.
> (Meanwhile, I'll try the ojAlg library... The only other one I haven't
> investigated is JEigen, a wrapper around the C++ eigen library...)
> Thanks.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)