[18761] in s-news-athena
[S] Query: array of matrices
daemon@ATHENA.MIT.EDU (SOFIA Stephano)
Tue Jul 27 18:25:40 1999
From: cs0sso@cis.sunderland.ac.uk (SOFIA Stephano)
To: s-news@wubios.wustl.edu (S-News)
Message-Id: <1999Jul27.232152.1814.2870420@missgate.sunderland.ac.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Date: Tue, 27 Jul 1999 23:22:01 +0100
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