Date: Fri, 3 Jun 2005 00:16:48 -0700
Reply-To: Arash <amahdian@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Arash <amahdian@GMAIL.COM>
Organization: http://groups.google.com
Subject: circular shift a matrix in SAS/IML
Content-Type: text/plain; charset="iso-8859-1"
Is it possible to circular shift a matrix in SAS/IML?
I mean:
a = { -1 -2 , -3 0 , 1 2 };
c=CIRCSHIFTROW(a,1);
c = { -3 0 , 1 2 , -1 -2};
or
c=CIRCSHIFTCOLUMN(a,1);
c = { -2 -1 , 0 -3 , 2 1 };
Thanks
|