For a scalar primitive like plus, the shape of the result of table is
simply the concatenation of the shapes of the left and right arguments:
(($a),$b) -: $ a +/ b

   $(i.2) +/ i.3
2 3
   $(i.2 2) +/ i.3
2 2 3
   $(i.2 2) +/ i.3 4 5
2 2 3 4 5


On Thu, Sep 25, 2014 at 5:05 AM, Tikkanz <tikk...@gmail.com> wrote:

> The shape is 2 4, not 2 2 ?
>
> If you look up the dyadic use of u/, then you should be able to predict
>  the shape.
> From the wiki page: "(x u/ y) returns a table
> <http://www.jsoftware.com/jwiki/Vocabulary/AET#Table> having entries (a u
> b)
> for every a in x and b in y"
>
> http://www.jsoftware.com/jwiki/Vocabulary/slash#dyadic
>
> On Thu, Sep 25, 2014 at 7:10 PM, Chris Wright <cawright...@gmail.com>
> wrote:
>
> > ah. dumb of me. lesson learnt.
> >
> > so now the question is could one predict 2 2 for the shape of the answer
> ?
> > as opposed to say 14
> >
> > thanks again!
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to