s-news
[Top] [All Lists]

[S] Query: array of matrices

To: s-news@wubios.wustl.edu (S-News)
Subject: [S] Query: array of matrices
From: cs0sso@cis.sunderland.ac.uk (SOFIA Stephano)
Date: Tue, 27 Jul 1999 23:22:01 +0100
Organization: University of Sunderland
Sender: owner-s-news@wubios.wustl.edu

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

<Prev in Thread] Current Thread [Next in Thread>
  • [S] Query: array of matrices, SOFIA Stephano <=