|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
MemoryConstrained
MemoryConstrained[expr, b]
evaluates expr, stopping if more than b bytes of memory are requested.
MemoryConstrained[expr, b, failexpr]
returns failexpr if the memory constraint is not met.
DetailsDetails
- MemoryConstrained generates an interrupt to stop the evaluation of expr if the amount of additional memory requested during the evaluation of expr exceeds b bytes.
- MemoryConstrained evaluates failexpr only if the evaluation is aborted.
- MemoryConstrained returns $Aborted if the evaluation is aborted and no failexpr is specified.
- Aborts generated by MemoryConstrained are treated just like those generated by Abort, and can thus be overruled by AbortProtect.
- MemoryConstrained[expr, Infinity] imposes no memory constraint.
New in 1 | Last modified in 6
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
