Smaller matrix causes mldivide to fail (out of memory)
이전 댓글 표시
Hi,
I want to execute the following code which always worked till now. I tried 2 differents cases where one matrix is smaller than the other. The first case, with the smaller matrix, fails with an out of memory error, while the second case execute successfully!
1. m = 307785 (nnz(W) = 8290840, numel(W) = 94731606225) -> FAIL
2. m = 1064960 (nnz(W) = 28163332, numel(W) = 1134139801600) -> OK
W = sparse(Y,X,V,m,m);
D = spdiags(sum(W, 2),0,m,m);
P = D\W;
Any idea why this is happening? Thank you!
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!