[ 
https://issues.apache.org/jira/browse/MATH-1557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17215347#comment-17215347
 ] 

Gilles Sadowski commented on MATH-1557:
---------------------------------------

The [current coverage 
report|https://coveralls.io/builds/34090568/source?filename=src/main/java/org/apache/commons/math4/linear/EigenDecomposition.java]
 indicates that although the {{DecompositionSolver}} inner class holds a 
[reference to the complex part of the 
eigenvalues|https://coveralls.io/builds/34090568/source?filename=src/main/java/org/apache/commons/math4/linear/EigenDecomposition.java#L384],
 it won't handle the case where [they are not all 
zero|https://coveralls.io/builds/34090568/source?filename=src/main/java/org/apache/commons/math4/linear/EigenDecomposition.java#L372].

The code within private method {{findEigenVectorsFromSchur}} seems to handle 
imaginary eigenvalues, yet IIUC the [returned vectors only hold real 
values|https://coveralls.io/builds/34090568/source?filename=src/main/java/org/apache/commons/math4/linear/EigenDecomposition.java#L933].

> 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)

Reply via email to