Statalist The Stata Listserver


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

RE: st: Viewing code for matrix functions


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: Viewing code for matrix functions
Date   Wed, 7 Mar 2007 12:18:39 -0000

This is expanding the point made earlier 
in the thread that some _Mata_ functions
(Stata 9 on) are visible. I think Rachel's 
question was to do with Stata's older _matrix_
language. Or, at least, if she meant Mata
she didn't say so. 

Nick 
[email protected] 

[email protected]
 
> Some matrix commands are in built and others you can see the code.
> Type help m4_matrix for a list of matrix functions.
> For example, you can see the code to obtain a matrix determinant
> help mf_det and then and the bottom of the help windown you 
> have the source
> code. But some commands such as cholesky (help mf_cholesky) 
> are in built and
> they use the LAPACK package - a set of free routines from Fortran.
> 
> You will have to go trough the list of commands displayed 
> with help m4_matrix
> and check if there's a source code.

> > On 3/6/07, Rachel <[email protected]> wrote:
> > > 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/



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