Confused with pdpotrf arguments

给你一囗甜甜゛ 提交于 2019-11-28 09:23:46

问题


I want to do a Cholesky factorization in a distributed environment. For that purpose, I use pdpotrf(). However, I am struggling understanding the parameters needed by the function and they provide no C example on how to use it (and an example would be really great to have).

Assume I have a NxX matrix I want to factorize. Then, what values should the parameters have? uplo, a and info are well defined in my mind. How about the rest?

n should be equal to N I would say. However, desca, ia and ja are the ones that confuse me. Moreover, desca is global and local, something that I can't understand. Can someone explain? Maybe with an approach-example (not necessarily code, since I want to understand, not just copy paste).

I do not know any Fortran.


回答1:


From this answer, we have:

IA and JA: those parameters are meant to provide the starting row and column of your global matrix inside a larger matrix. They are only relevant if you have a big matrix and only want the Cholesky decomp of a submatrix. In your case, IA and JA both have to be 1!

Again, from this answer, there exists a link, that describes desca:



来源:https://stackoverflow.com/questions/30937544/confused-with-pdpotrf-arguments

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!