How to abort or stop this (accidently large defined) SparseArray production?
s = N[SparseArray[Table[{2^i, 4} -> i, {i, 30}]]]
Alt+. or Alt+, seem to give up. Even your Windows task manager is struggling.
|
How to abort or stop this (accidently large defined) SparseArray production?
Alt+. or Alt+, seem to give up. Even your Windows task manager is struggling. |
|||
|
Could use $Pre to wrap things in MemoryConstrained. I'll illustrate with an unusually tight constraint.
Examples:
|
|||||||||
|
Evaluation->Quit Kernel -> Localoften succeeds whereAbort Evaluationfails for me. – image_doctor Jan 13 at 16:42