Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
|
![]() |
#1 |
高级会员
注册日期: 2019-11-21
帖子: 3,006
声望力: 66 ![]() |
![]() I have two 19x19 covariance matrices However, the eigenvalues that are returned are not the same, usually. I've verified that the two matrices are indeed the same between the two languages. Here's what I've found:
Does anyone have any ideas why the values won't be the same, despite the redhat/python/numpy/scipy versions matching? Are there other dependencies I don't know about that I should match? Since it is two square matrices, I can't use the numpy eigenvalue solver. The end goal of this code is to grab the normalized e-vector corresponding to the maximum eigenvalue. The matlab version used is '9.2.0.556344(R2017a)'. We also don't have to assume which set of eigenvalues is 'correct'. Code snippets:
and
These snippets run many times with the data I have, so I'm just testing the eigenvalues on the Ron2,Roff2 that goes through the first time. What is with the discrepancy? More answer... |
![]() |
![]() |