While a ,"0/ b might be the best solution, a closer approximation of
the APL2 a °. , b would be a ,&.>/ b

That said, you might also want to consider {a;b

(Or, the mostly equivalent {a;<b)

Thanks,

-- 
Raul


On Sat, Apr 2, 2016 at 3:11 AM, Gian Medri <[email protected]> wrote:
> Hi !
>
> In J the outer product  has the form:    a foo/ b.
> It doesn't  work for comma.
> Example
> a=: i. 3
> b=: i.4
> [  a ,/ b
> 0 1 2 0 1 2 3
> APL
>  a °. , b
>  0 0  0 1  0 2  0 3
>  1 0  1 1  1 2  1 3
>  2 0  2 1  2 2  2 3
>
> 3 x 4 boxed result
>
> Can I have the same result  in J as easily as in APL?
> Best regards
> ----------------------------------------------------------------------
> 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