MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Clear vs. remove?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43199] Re: [mg43043] Clear vs. remove?
  • From: Ezine <ezine at omegaconsultinggroup.com>
  • Date: Mon, 18 Aug 2003 02:50:58 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

At 01:57 AM 8/9/2003, Jonathan Greenberg wrote:
>I'm trying to do some memory management for an algorithm I'm writing in
>Mathematica -- does Clear just remove the values, but leaves the memory
>registry open (e.g. whatever the original size of the variable, that amount
>of memory is still being used)?  I am using clear and am not seeing a
>decrease in memory at the appropriate time.  Should I be using remove, or
>some other function to clean up the memory?
>
>--j

The expression is probably being held in an Out value. (Mathematica by 
default stores all previous outputs.) This can be controlled by setting the 
$HistoryLength.

http://omegaconsultinggroup.com/Services/HTMLLinks/ezv2i06_3.html

--------------------------------------------------------------
Omega Consulting
"The final answer to your Mathematica needs"
http://omegaconsultinggroup.com


  • Prev by Date: Re: Re: New version, new bugs
  • Next by Date: Re: Re: New version, new bugs
  • Previous by thread: Clear vs. remove?
  • Next by thread: Tool box Biokmod and Humorap updated