On 2007.04.01 14:09:57, you,
the extraordinary Roger Hui, opined:
>
> Some languages and at least one (old) version of
> APL identify atoms with 1-element vectors.
<snip>
The old York APL (which was nice in some ways) did this.
One place where doing so proved messy was the outer product.
A <jot> . + B should have shape ((rho A),rho B). York
chose to treat the case where A had 1 element as if A
were a scalar, so results sometimes had one axis fewer
than I'd expected. My functions had a lot of phrases like
((rho A),rho B) rho A <jot> . f B
('rho' = J '$'; 'A <jot> . f B' = J 'f/')
...N.
--
Nollaig MacKenzie
http://www.amhuinnsuidhe.net
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm