On Sat, Jan 16, 2010 at 3:00 PM, Robert O'Boyle <[email protected]> wrote: > TEST =: 3 : 0 > 'a b' =: y > out =: a+out*b > ) > > which multiplies out by the second row scalar, adds this to out and then > reassigns out. ... > It applies the verb sequentially through all the lists of the 3 planes. What > I would like is the verb to be applied separately to each plane. In this > case, I would have the same output for each plane. Ultimately, I will be > sampling the first row of each plane from a population distribution and then > undertaking, say, 500 -1000 projections (each of these being a plane in > data). > > I have tried a number of rank conjunctions formulations to no avail. I'm > sure it is simple to do but I am just learning the nuances of the rank > conjunction. > > Any help would be most appreciated.
I believe you are asking for assignment to not be assignment but something else. The obvious solution, from my point of view, would be to not use global assignment. In other words, something like this: TEST=: 4 :0 'a b' =: |:y a+x*b ) out=:out TEST"2 data That said, I might not have read your message closely enough to discover exactly what you are trying to do. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
