-which- tells you the location of
an .ado file defining a command, so long
as you have it installed, and as a
bonus will tell you if that command is in
fact bullt-in.
However, -cholesky()- is not a command, but, as
you say, a function. So it does not come
under the scope of -which-. (Nor is it defined
by an .ado.)
In fact, no code for functions is accessible to
users. All are wired in to the executable.
The exceptions are -egen- functions (which
despite their name are more like subcommands)
and Mata functions. Some Mata functions are
visible.
The word "function" in Stata is somewhat overloaded,
especially if users come with preconceptions
from other languages about what is or
is not a function, but that's the story.
Nick
n.j.cox@durham.ac.uk
Rachel
I would like to see the code for several of Stata's matrix functions
(for example, cholesky()). However, I can't seem to find where they
are implemented.
-which- cholesky tells me it's not implemented as either an ado or
built-in function, so I assume I must be using the wrong name.
*
* 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/