a

0 1 2

3 4 5


    |."0 a

0 1 2

3 4 5


     |."1 a

2 1 0

5 4 3


     |."2 a

3 4 5

0 1 2



Skip Cave
Cave Consulting LLC

On Thu, Sep 25, 2014 at 12:38 AM, Chris Wright <cawright...@gmail.com>
wrote:

> Hi
>
> Real beginner here
>
> a =: 1 2 3 4
>
> |. a
>
> 4 3 2 1         NB. yep, all is well
>
>
>
>
> now:
>
> a=: 2 3 $ i.6
>
> a
>
> 0 1 2
>
> 3 4 5
>
> 1 |. a
>
> 3 4 5
>
> 0 1 2             NB. wow! looks like "rotate up", to me
>
> (intermission while I find out about rank,axis and frame!)
>
> oh ok
>
> 1 0 |. a
>
> 3 4 5
>
> 0 1 2           NB. hmm rotate 1 on the elements of first axis - so rotate
> the 1 cells that form the rows and no rotation on the elements of the
> second axis
>
>
> 0 1|. a
>
> 1 2 0
>
> 4 5 3           NB. ok - rotate 1 on elements of the second axis - so
> rotate the 0 cell elements of the 1 cells that form the rows
>
>
> 1 |. "1 a
>
> 1 2 0
>
> 4 5 3       NB - yep
>
>
> I guess my question is about the name "rotate left" - that's only the
> "visual result" if the right operand is a 1 cell - why not call it
> "rotate"?
>
>
> another possibility is that I still don't understand rank/axis/frame!!! :)
>
>
> cheers
>
> --
> A/Prof Chris Wright
> MBBS, FRACP, FCICM, GradDipiSc(Physics)
> Academic Coordinator, Years III - V Central MBBS
> Intensive Care Specialist
> Faculty of Medicine, Nursing and Health Sciences,
> Monash University
> Clayton VIC
> ----------------------------------------------------------------------
> 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