Octave Error: SparseMatrix::solve numeric factorization failed
Octave Error: SparseMatrix::solve numeric factorization failed
我有一个很大的方程组要解。系数存储在维度为 320001 x 320001 个元素的稀疏矩阵 CM 中,其中 18536032 个元素为非零元素。结果向量 B 的长度为 320001 个元素。
执行时
I=CM\B
Octave Error: SparseMatrix::solve numeric factorization failed
我收到上面的错误信息。简要查看源代码并没有给我任何线索。
有谁知道是什么导致了这个错误?
顺便说一句:当用较小的矩阵(例如 180001x180001)解决同样的问题时,程序运行良好。
约翰内斯
Octave 使用 UMFPACK
library to solve sparse linear systems. Inspecting the source shows that the error message is due to an error status with a negative value. List of error codes can be found in the user's guide。其中之一与内存不足有关:
UMFPACK ERROR out of memory, (-1): Not enough memory. The ANSI C malloc or realloc routine failed.
我有一个很大的方程组要解。系数存储在维度为 320001 x 320001 个元素的稀疏矩阵 CM 中,其中 18536032 个元素为非零元素。结果向量 B 的长度为 320001 个元素。
执行时
I=CM\B
Octave Error: SparseMatrix::solve numeric factorization failed
我收到上面的错误信息。简要查看源代码并没有给我任何线索。
有谁知道是什么导致了这个错误?
顺便说一句:当用较小的矩阵(例如 180001x180001)解决同样的问题时,程序运行良好。
约翰内斯
Octave 使用 UMFPACK
library to solve sparse linear systems. Inspecting the source shows that the error message is due to an error status with a negative value. List of error codes can be found in the user's guide。其中之一与内存不足有关:
UMFPACK ERROR out of memory, (-1): Not enough memory. The ANSI C malloc or realloc routine failed.