Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'memory release' topicStudent Support Forum > General > Archives > "memory release"

Next Comment >Help | Reply To Topic
Author Comment/Response
Nan
02/11/05 00:55am

I am writing a programme which has a great demand for memory.
For example, I define a List

a=Range[1000000];

After some operation on "a", I want to delete "a", and release the memory it takes.
What is the command in Mathematica for memory release, just like "delete[] " in C++ ?

or in other words, I want to realize the following C++ code in Mathematica:

int * a;
a = new int[1000000];
... ...
delete [] a;

I have tried the commands "Remove" and "Clear", it seems not the one I need.

URL: ,

Subject (listing for 'memory release')
Author Date Posted
memory release Nan 02/11/05 00:55am
Re: memory release Jim Fuite 03/10/05 3:14pm
Next Comment >Help | Reply To Topic