Smaller matrix causes mldivide to fail (out of memory)

Asked by Jean-Philippe on 30 May 2012

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 Comments

Jean-Philippe

Products

No products are associated with this question.

0 Answers

Contact us