The correct solution along these lines is

   (+/ I.@] } -.) 0 1 1 0 1 0 0 1
4 0 0 4 0 4 4 0

However, I am still in favor of (-. * +/) .

Marshall

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Raul Miller
Sent: Friday, March 18, 2011 11:37 AM
To: Programming forum
Subject: Re: [Jprogramming] an apparent inconsistency

On Fri, Mar 18, 2011 at 11:26 AM, Raul Miller <[email protected]> wrote:
> Oops:
> I am also a little unclear, myself, on why the mechanics of v} are the 
> way they are.

My original thought was misleading.

Here's an illustration of the real issue:

    (+/ I. } -.)0 1 1 0 1 0 0 1
4 0 0 1 0 1 1 0
    (+/ I. -.)0 1 1 0 1 0 0 1
0 0 0 0 0 0 0 0

--
Raul
----------------------------------------------------------------------
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