avatar
w*t
1
我要解一个线性方程组,矩阵是条形的,想用Lapack里的DGBTRS solver, 如下
DGBTRS( TRANS, N, KL, KU, NRHS, AB, LDAB, IPIV, B, LDB, INFO )
KL (input) INTEGER
* The number of subdiagonals within the band of A. KL >= 0.
KU (input) INTEGER
* The number of superdiagonals within the band of A. KU >= 0.
LDAB (input) INTEGER
* The leading dimension of the array AB. LDAB >= 2*KL+KU+1.
LDAB 这个不懂,大家可以解释一下 怎样确定一个matrix的 LDAB 吗?比如我要解
1 1 1 0
1 1 1 0
0 1 1 0
0 0 0 1
KL=1, KU=2, 对吗,LDAB是多少?
另外,听说
avatar
s*t
2
the leading dimension is often used in LAPACK. it's basically
related to how you allocte your memory. and it follows the fortran
rule, i.e., column-order.
say you have a 5x5 matrix. but you can allocate a 10x10 block and
put the 5x5 matrix anywhere within the 10x10 block that fits. you
then tell the LAPACK routine the pointer to the first element of
the 5x5 matrix, and the leading dimension, which is 10, and the matrix
size, which is 5x5. then the routine will know where to find the
5x5 ma

【在 w**t 的大作中提到】
: 我要解一个线性方程组,矩阵是条形的,想用Lapack里的DGBTRS solver, 如下
: DGBTRS( TRANS, N, KL, KU, NRHS, AB, LDAB, IPIV, B, LDB, INFO )
: KL (input) INTEGER
: * The number of subdiagonals within the band of A. KL >= 0.
: KU (input) INTEGER
: * The number of superdiagonals within the band of A. KU >= 0.
: LDAB (input) INTEGER
: * The leading dimension of the array AB. LDAB >= 2*KL+KU+1.
: LDAB 这个不懂,大家可以解释一下 怎样确定一个matrix的 LDAB 吗?比如我要解
: 1 1 1 0

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。