[Matrix-SIG] rotater?

Yoon, Hoon (CICG - NY Program Trading) HYoon@exchange.ml.com
Wed, 16 Jun 1999 15:37:23 -0400


Hi,

  Gauss has this thing called rotater, which given array rotates it by
another value in array

x = [[1,2,3], [2,3,4]]
shft = [1,2]
rotater(x, shft)
will give you
[[2,3,1], [4,2,3]]
   Easy enough to do in a loop, but can I avoid this somehow?

**************************************************************
S. Hoon Yoon                   (Quant)                    Merrill Lynch
Equity Trading 
yelled@yahoo.com hoon@bigfoot.com(w)
"Miracle is always only few standard deviations away, but so is
catastrophe."
* Expressed opinions are often my own, but NOT my employer's.
"I feel like a fugitive from the law of averages."    Mauldin
**************************************************************