[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Viewing code for matrix functions
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,
Quoting Austin Nichols <email@example.com>:
> 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 <firstname.lastname@example.org> 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: