Statalist The Stata Listserver

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

Re: st: creating three-dimensional matrices

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

Zurab Sajaia <> 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
*   For searches and help try:

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