[
https://issues.apache.org/jira/browse/MATH-1557?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Randy Strauss updated MATH-1557:
--------------------------------
Description:
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.
was:
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).
To give you a test case:
I wrap a RealMatrix in an RMatrix and add a name, to help with testing
and use this to set a single or multiple values on a single row, starting at
col c:
{{ public void set(int r, int c, double...val) {...
}}
Methods to create the hamiltonian matrix, the real and imaginary parts of the
eigenvectors (which this library creates) and the real and imaginary parts of
the eigenvectors follow. Note that the eigenvalues (evals) come as a diagonal
matrix.
(Meanwhile, I'll try the ojAlg library... The only other one I haven't
investigated is JEigen, a wrapper around the C++ eigen library...)
> 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)