Something like this might work :
1 2 3 |."0 1 ] 10 11 12
Otherwise you should probably look at A.
({~ i.@!@# A. i.@#) 'abc'
On Mar 24, 2013 2:55 PM, "Alex Giannakopoulos" <[email protected]>
wrote:

> I need to get all the rotations of a rank-1 vector
> i.e from 10 11 12  to get  10 11 12, 11 12 10 and 12 10 11
>
> say my vector is size 3, I tried:
>   i.3  |. 10 11 12
> but it spits out a length error, as, of course, does  0 1 2 |. 10 11 12
> Trying to change the rank of rotate doesn't seem to help, not how I'm doing
> it, anyhow.
>
> Any suggestions?
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to