4
votes
1answer
141 views

Forget past outputs to free memory

While tinkering with a notebook that loads a large chunk of data in memory, I noticed that if I run it multiple times, the past chunks reside in memory. I understand that the reason (or one of) for ...
11
votes
1answer
313 views

Space-efficient null space of sparse array

I have a roughly 100,000 × 3,000 matrix (as a SparseArray) that I'd like to find the kernel (null space) of. It has about 500,000 nonzero entries, all -1 or 1. ...
0
votes
0answers
81 views

Running out of memory more gracefully [duplicate]

Possible Duplicate: Aborting evaluation when the memory exceeds a certain limit My script ran into the following error, with no further comments from the kernel. No more memory ...
22
votes
4answers
735 views

Aborting evaluation when the memory exceeds a certain limit

Sometimes when generating a lot of data the memory usage shoots beyond its physical realm and my laptop freezes. There is no way to stop Mathematica when this happens. Task manager (or its equivalent ...