如何测试 dpotrf

发布于 2024-09-30 14:32:25 字数 153 浏览 1 评论 0原文

我正在科学应用程序中进行一些测试。该应用程序使用 Lapack dpotrf Lapack 函数。我不太了解线性代数。我必须模拟对 dpotrf 的大调用,然后生成一个随机矩阵以对其执行 dpotrf。

难道这个矩阵一定有特殊的图案吗?我可以生成一个简单的 NxN 双矩阵吗?

I am performing some tests in a scientific application. This application uses Lapack dpotrf Lapack function. I am not really aware about linear algebra. I must simulate a big call to dpotrf, then generate a random matrix to perform dpotrf on it.

Is this matrix must have a special pattern? Are I can just generate a simple NxN double matrix?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你不是我要的菜∠ 2024-10-07 14:32:26

来自 dpotrf.f,DPOTRF 计算实数对称正定矩阵的 Cholesky 分解答:

因此,输入预计为正定且对称。

另外,dpotrf 期望输入是一个数组,即您的输入是 (N*N)x1。我通常将输出重塑为 NxN。

from dpotrf.f, DPOTRF computes the Cholesky factorization of a real symmetric positive definite matrix A.

Therefore the input is expected to be a positive-definite and symmetric.

Also, dpotrf expects the input to be an array, i.e. your input is (N*N)x1. I usually reshape the output to NxN.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文