2007/1/6, June Kim <[EMAIL PROTECTED]>:
2007/1/6, Roger Hui <[EMAIL PROTECTED]>:
> Yes:
>
>   (2 3;0 1) |: i.2 3 4 5
>  0 80
>  6 86
> 12 92
> 18 98
>
> Run axes 2 and 3 together and move to the front,

I"m a bit confused. Shouldn't it be instead "move to the tail"?

"x|:y moves axes x to the tail end."

  $(0 1 ) |: i. 2 3 4 5
4 5 2 3

Oops. Sorry.

I meant:

  $(<0 1 ) |: i. 2 3 4 5
4 5 2


> and run axes 0 and 1 together. i.e.  z[i;j] = y[j;j;i;i]

Thank you. That expression is very helpful to understanding.

>
> See also:
> http://www.jsoftware.com/jwiki/Essays/Transpose
>
>
>
> ----- Original Message -----
> From: June Kim <[EMAIL PROTECTED]>
> Date: Friday, January 5, 2007 6:17 pm
> Subject: [Jprogramming] Dyadic Transpose
>
> > from Dictionary:
> >
> > <quote>
> > x|:y moves axes x to the tail end. If x is boxed, the axes in each box
> > are run together to produce a single axis:
> >
> >   y=: 3 4$'abcdefghijkl'
> >   y;(1 0|:y);(0|:y);((<0 1)|:y)
> > </quote>
> >
> > Are there any legal(or meaningful) cases that the x consists of more
> > than one boxes?
> >
> > That is, (a;b;c) |: y
>
>
> ----------------------------------------------------------------------
> 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