Statalist The Stata Listserver


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

st: Programmatically obtaining list of Mata functions/matrices/scalars in memory


From   "David Elliott" <[email protected]>
To   [email protected]
Subject   st: Programmatically obtaining list of Mata functions/matrices/scalars in memory
Date   Mon, 18 Jun 2007 13:58:31 -0300

I've scoured the manual, mata help and online sources without
obtaining an answer - is it possible to programmarically obtain a list
of functions in Mata memory?

For example:

mata
mata clear
function add(a,b) return(a+b)
function mult(a,b) return(a*b)
mata d *()
     # bytes   type                        name and extent
-------------------------------------------------------------------------------
          76   transmorphic matrix         add()
          76   transmorphic matrix         mult()
-------------------------------------------------------------------------------


Is there a way to create the equivalent of:

functions = ("add()","mult()")

when you don't have knowledge of what the function names may be?


Thanks,

--
David Elliott
*
*   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