Statalist The Stata Listserver


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

Re: st: creating three-dimensional matrices


From   [email protected] (William Gould, Stata)
To   [email protected]
Subject   Re: st: creating three-dimensional matrices
Date   Wed, 21 Jun 2006 13:29:29 -0500

Zurab Sajaia <[email protected]> writes, 

> In a program (mata) I need to store n different matrices, so effectively, 
> that's kind of three-dimensional matrix.
> 
> Currently I do this by creating matrix (rowvector) of pointers - 
> prow[1..n-], initially pointing them to some simple matrices I(1) and then 
> storing my working matrices by *prow[i]=X
>
> But somehow still have a filling that that's not the best way to do it, I 
> was wandering if anybody had a better idea?

I do not have a better idea; what Zurab has outlined is exactly how I would
do it.

-- Bill
[email protected]
*
*   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