On Wed, Mar 3, 2010 at 10:48 AM, Raul Miller <[email protected]> wrote:
> On Wed, Mar 3, 2010 at 10:29 AM, Dan Bron <[email protected]> wrote:
>> Even if it's this simple, I'm surprised we require the recursion, given J's 
>> native array capabilities.

P.S. hypothetically speaking, recursion is
not required here.  In principle, every element
of the result can be computed by
 (ix { x) +/@:*  iy { y

where ix and iy select the relevant elements from x
and y for the desired element of the result.

Of course, performing this selection is the problem
we are trying to solve, and the recursive approach
might or might not have some efficiencies that a
non-recursive approach would not have...

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

Reply via email to