简体   繁体   English

lapack中cgesv的“信息> 0”错误到底是什么?

[英]What exactly is an “info > 0” error for cgesv in lapack?

I'm trying to use lapack to solve a set linear equations, but when I run the program I get an error which is info > 0. It states that 我正在尝试使用lapack求解一组线性方程,但是当我运行该程序时,出现错误,提示信息>0。它指出

Element U(10011001) is exactly zero. 元素U(10011001)恰好为零。 The factorization has been completed, but the factor U is exactly singular, so the solution could not be computed.' 分解已经完成,但是因子U恰好是单数,因此无法计算解。

What does this exactly mean? 这到底是什么意思? I'm using the cgesv subroutine. 我正在使用cgesv子例程。 I have a 1001 by 1001 matrix for A and B and X are 1001 by 1. What does the "info > 0 error" actually mean in simple terms? 对于A和B,我有一个1001 x 1001矩阵,而X是1001 x1。“ info> 0 error”的简单含义是什么?

It means that your coefficient matrix is not invertible and the solution is not found. 这意味着您的系数矩阵不可逆,并且找不到解决方案。 The error comes from the initial LU factorization of the coefficient matrix. 误差来自系数矩阵的初始LU分解。 And the last diagonal element of U turns out to be zero. 而且,U的最后一个对角元素为零。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM