Statalist The Stata Listserver


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

Re: st: Viewing code for matrix functions


From   [email protected]
To   [email protected]
Subject   Re: st: Viewing code for matrix functions
Date   Wed, 7 Mar 2007 09:45:14 +0000

Rachel,

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.

Hope this helps,

Marcos.




Quoting Austin Nichols <[email protected]>:

> Rachel--
> It's a safe bet that every function is built in (not interpreted
> code).  It's an even safer bet that all the matrix functions are built
> in--even the -matrix- subcommands are!
>
> The references at http://mathworld.wolfram.com/CholeskyDecomposition.html
> might tell you the relevant formulas...
>
> though I sincerely doubt you need them.
>
> 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.
> >
> > Can anyone help?
> >
> > Thanks,
> > Rachel
> > *
> > *   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/
> >
> *
> *   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/
>



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