拉帕克+ c +矩阵
您能帮我了解如何调用 Lapack 例程吗?特别是,我想调用 DTRTRI(Uplo、DIAG、N、DA、LDA、INFO)。
Would you please help me understand how to call a Lapack routine? In particular, I want to call DTRTRI (Uplo, DIAG, N, DA, LDA, INFO).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需使用现有的C 语言包装器之一即可LAPACK(它本身是用 FORTRAN 编写的)。
具体来说,尝试 lapwrapc。
它有一个在 src/lapack_dtrtri.c 中定义的 DTRTRI C 接口
Just use one of the existing C language wrappers for LAPACK (which itself is written in FORTRAN).
Specifically, try lapwrapc.
It has a C interface to DTRTRI defined in src/lapack_dtrtri.c
查看 Armadillo C++ Library 的源代码,它调用了许多 Lapack 函数。
Armadillo 直接从 C++ 调用 Fortran 函数,无需使用任何 C 语言包装器或转换 Fortran 代码。
Have a look at the source to the Armadillo C++ Library, which calls many Lapack functions.
Armadillo calls the Fortran functions directly from C++, without using any C language wrappers or converting the Fortran code.