Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Memory Conservation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg29867] Memory Conservation
  • From: Shane Frasier <jsf9k at virginia.edu>
  • Date: Sat, 14 Jul 2001 01:36:58 -0400 (EDT)
  • Organization: University of Virginia
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
    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
questions:

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 virginia.edu




  • 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