C++大型符号的armadillo特征值
在我的程序中,我使用armadillo在大型密集的真实对称矩阵上反复执行特征值计算。相应的功能应该是
arma::mat H = ...; //dense, real, symmetric >= 300x300
arma::eig_sym(H);
必须完成约100.000次,因此我想知道有更快的方法可以做到这一点。我还必须获得特征值的全部。我已经尝试了原来的特征和光谱库,结果较慢,并且尝试使用Arpack-Arpack-Armadillo,但是在不同的标头文件中的定义矛盾的定义遇到了麻烦并放弃了。我还将Blas和Lapack连接起来,因为如果我正确理解了Armadillo应该使用的Blas和Lapack。
In my program I use armadillo to repeatedly perform eigenvalue computations on a large dense real symmetric matrix. The corresponding function should be
arma::mat H = ...; //dense, real, symmetric >= 300x300
arma::eig_sym(H);
which has to be done some 100.000 times, therefore I was wondering whethter there are faster ways to do this. I also have to get all of the eigenvalues. I already tried the Eigen and Spectra libraries which turned out to be slower, and I tried using ARPACK-Armadillo, but ran into trouble with conflicting definitions in different header files and gave up. I also linked blas and lapack, since armadillo is supposed to be using those if I understood that correctly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论