Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Mata: dropping structures from memory


From   "David Harrison" <[email protected]>
To   <[email protected]>
Subject   st: RE: Mata: dropping structures from memory
Date   Tue, 13 Jun 2006 16:53:57 +0100

I may be wrong, as I am certainly no expert in Mata, but can structures
not just be dropped (as any other objects) using -mata drop-, e.g.

mata drop mystruct()

David 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Zurab Sajaia
Sent: 13 June 2006 15:51
To: [email protected]
Subject: st: Mata: dropping structures from memory

Hi everyone,

I have a recursive problem involving linked list of structures in Mata,
but after some number of chains (number is not fixed, that's why I
decided to use list instead of a matrix) I don't need an earlier members
of the list and they can be dropped to free some memory. If I don't drop
them, my list is getting too long and even makes Stata to crash.

I was wondering if there was some way of clearing structures like other
objects in Stata.

Thanks in advance,
Zurab

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index