Problem when trying to translate a generalized eigenvalue solution in Matlab into using LAPACK directly
显示 更早的评论
Hi,
I have recently had a problem related to trying to move a working solution that use the generalized eigenvectors as computed by Matlab into a Java program. I am then trying to call the same routines in LAPACK that I assume Matlab is using (both matrices will be real and symmetric), but then get the eigenvectors scaled by different factors, i.e., if I divide the Matlab eigenvectors with the ones I get from LAPACK when called directly, I get a different scaling for each of the vectors. Regrettably, this makes my solution give a different result - and a wrong one. I would therefore like to know how I should call the LAPACK functions to get the same results as if using Matlab, or any fix that I can use to solve the problem.
As the vectors are not normalized, one is not able to correct this by simply normalizing them.
Thank you for your time.
Regards, Andreas
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Linear Algebra 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!