The rank of Times is infinite (left, right and monad ranks). The rank
of * is zero.

But I see that you're not actually using Times in your expressions.

There, the issue is conjunction parsing. Conjunctions have a long left
scope, and from your description you really intended:

   (i.3 4)+/ .(*@*) i.4 5
3 3 3 3 3
3 4 4 4 4
3 4 4 4 4

Thanks,

-- 
Raul


--
Raul

On Fri, Mar 1, 2019 at 11:54 AM Brian Schott <schott.br...@gmail.com> wrote:
>
> Length error  results when, instead of the usual Times in dot product, I
> use Signum@Times or Signum@:Times. On the other hand, when I use the
> equivalent of dot product u@(v"(1+lv,_)) no length error occurs.
>
> Below is a short session demonstrating my experiments.
> What am I missing?
>
> Thanks,
>
>    JVERSION
> Engine: j807/j64/darwin
> Release-c: commercial/2019-02-24T10:50:40
> Library: 8.07.22
> Platform: Darwin 64
> Installer: J807 install
> InstallPath: /users/brian/j64-807
> Contact: www.jsoftware.com
>    (i. 3 4 ) +/ . * i. 4 5
>  70  76  82  88  94
> 190 212 234 256 278
> 310 348 386 424 462
>    (i. 3 4 ) +/ . *@:* i. 4 5
> |length error
> |   (i.3 4)    +/ .*@:*i.4 5
>     (i. 3 4)+/@(*"(1+0,_)) i. 4 5
>  70  76  82  88  94
> 190 212 234 256 278
> 310 348 386 424 462
>    (i. 3 4)+/@(*@*"(1+0,_)) i. 4 5
> 3 3 3 3 3
> 3 4 4 4 4
> 3 4 4 4 4
>
>
>
> --
> (B=)
> ----------------------------------------------------------------------
> 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