> From: Brian Schott
> 
>       Is there a better way to combine the first two axes
> of an array when the second axis's shape is 1 than using
> transpose. I can achieve the desired result using transpose,
> as in ,"2&.|: . (I have always assumed transpose was
> inefficient, but maybe not.)
> 
>    $ ,"2&.|: i. 3 1 5 5
> 3 5 5
> 
How about this?
   $,/ i. 3 1 5 5
3 5 5

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to