Closed henrique-borba closed 3 years ago
Interesting @henrique-borba nice catch, that library is pretty old. Do you think it's using a different method to obtain the eigenvalues?
Let's not worry too much about it, I'm willing to remove the dependency on JAMA and just throw an exception (method not implemented) in the polyfill if need be. We only use eig for PCA and LDA in the main package anyway.
I'm getting the same results for eigenvalues as you are ... haven't looked at eigenvectors yet
It looks like the eigenvalues are just in different order (probably not an issue). Also, eigenvectors are not unique so that's not necessarily a problem either. Is it safe to assume different algorithms can produce a different set of eigenvectors?
After some failed tests with CRubix interface I realized the expected eigenvalues and vectors from MatrixTest are actually wrong compared to other libraries. The following matrix was used:
Tensor with JAMA
Tensor with CArray
Computed using LAPACK_dgeev
NumPy
Computed using LAPACK_dgeev