Dear S-Plus users,
I'm writing a procedure where at each step t ( from the second to the last
one ) the current matrix ( let us say A[t], of dimension n ) depends on the
matrix at the previous step ( A[t-1] ) ( i.e. A[t] <- A[t-1] + W, where W is
another matrix and A[1] is given ).
In order to create and store the value of the matrix A at each time, I have
thought that the easiest thing to do is to create an array of matrices, but
I'm struggling to do it.
I tried
C <- array(data = matrix(nrow = n, ncol = n), dim = N)
but there is something wrong.
I looked for it in the s-news archives, without success.
Could please somebody explain to me how to define properly an array of
matrices ?
grateful for the support
Stefano
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|