I'm blathering a lot here, sorry about that, but I found a case, now I just need to understand it:
A=: (|:++:) #:0 8 4 4 C=: (a:,];|:) #:0 6 11 1 D=: #:9 0 0 4 Now to see if I can understand what's happening here... I will try to refrain from posting my incomplete thoughts -- I'll try to come back with something that works. Thanks, -- Raul On Sun, Nov 4, 2012 at 2:18 PM, Raul Miller <rauldmil...@gmail.com> wrote: > In revise, you are using a pair for your right argument. > > It looks to me like this might be unnecessary -- that you could use > ys=. I.+./"1 D > > But this does not exactly reproduce your algorithm. So if this change > breaks your algorithm, could you find an example situation which > illustrates this issue? > > Thanks, > > -- > Raul > > On Fri, Nov 2, 2012 at 1:01 AM, Michal D. <michal.dobrog...@gmail.com> wrote: >> Hi All, >> >> I've managed to write my first not-completely-trivial program in J. It >> implements an arc consistency algorithm ( >> http://en.wikipedia.org/wiki/Local_consistency#Arc_consistency). I would >> appreciate any comments regarding style, what I'm doing wrong in J or how >> to improve the code. I also have a couple of questions of my own: >> >> 1) how do I avoid @ especially once we remove explicit arguments? >> 2) how do I avoid constant boxing/unboxing due to fill (see arcsX)? >> 3) Is a boxed value always a pointer? One could imagine implementing >> 'ragged' arrays without pointers. >> 4) Is there a good way to have named variables (ie. avoid getx, gety)? >> 5) Why is a hook the default and not composition? >> >> Code at: http://pastebin.com/k4XuKfFi >> >> Cheers! >> >> Mike >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm