Help with RECTANGULAR[series]
Posted: Wed Feb 09, 2011 8:25 am
Hello all,
I am having some difficulties figuring out RECTANGULAR arrays and it seems like I end up using a number of do loops where more efficient methods should be available.
1. Can I do a vertical concatenation of two RECTANGULAR[series] arrrays? If A is (1,6) and B is (1,6), how do I make an array C that is (2X6) and contains all of the elements of A and B? It seems to me that:
compute C = A~~B
might work but either I have the syntax wrong or I do not understand this operator.
2. How do I set a single row of a RECTANGULAR[series] array? Suppose I have a RECTANGULAR[series] array A that is (6,6) and I have a VECTOR[series] B that is of dimension 6. Is there an efficient way to set A(3,*) = B?
3. How do I extract a single row of a RECTANGULAR[series] array? For example, suppose I have a RECTANGULAR[series] array A that is (6,6) and I want to look at all of the series contained in row 3. Is there an efficient way to extract this row as either a RECTANGULAR or a VECTOR?
This data type seems like a very powerful feature but I feel that I am missing some fairly basic concepts about how to use it. Any help would be much appreciated!
Thank you,
Geoff
I am having some difficulties figuring out RECTANGULAR arrays and it seems like I end up using a number of do loops where more efficient methods should be available.
1. Can I do a vertical concatenation of two RECTANGULAR[series] arrrays? If A is (1,6) and B is (1,6), how do I make an array C that is (2X6) and contains all of the elements of A and B? It seems to me that:
compute C = A~~B
might work but either I have the syntax wrong or I do not understand this operator.
2. How do I set a single row of a RECTANGULAR[series] array? Suppose I have a RECTANGULAR[series] array A that is (6,6) and I have a VECTOR[series] B that is of dimension 6. Is there an efficient way to set A(3,*) = B?
3. How do I extract a single row of a RECTANGULAR[series] array? For example, suppose I have a RECTANGULAR[series] array A that is (6,6) and I want to look at all of the series contained in row 3. Is there an efficient way to extract this row as either a RECTANGULAR or a VECTOR?
This data type seems like a very powerful feature but I feel that I am missing some fairly basic concepts about how to use it. Any help would be much appreciated!
Thank you,
Geoff