MathGroup Archive 2001

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

Search the Archive

Memory Conservation

    I have a program in Mathematica that involves large matrices.  I want to
make sure that intermediate variables aren't wasting memory, so I have a few

1)  I have functions that look like
Module[{i,j,final_answer},...Remove[i,j];final_answer].  Is Remove necessary
here, or do module variables cease to exist once the module ends?

2)  If it is necessary, is there any way to Remove final_answer too before
the module ends?  In my case, the construction of final_answer is
complicated, so I want to build it up in stages to avoid having a single,
long and unreadable line of code.

Thanks for your help,
Shane Frasier
jsf9k at

  • Prev by Date: Re: Vertical Asymptote
  • Next by Date: weighting CA neighbors by distance
  • Previous by thread: Re: sinosidal circle equation
  • Next by thread: Re: Memory Conservation