On Fri, Aug 28, 2009 at 12:33 AM, Kip Murray<[email protected]> wrote:
> Thanks for your work below.  How about a verb NP such that NP au is the
> appropriate left argument for p. ?  At your option it could be a dyadic verb
> with a NP u the appropriate left argument for p.  Either would serve my needs
> admirably.  ( a and u are rows 0 and 1 of au )
>
> Raul Miller wrote:
>> Np=:adverb define
>>    'coef valu'=:m
>>    [:+/ coef * (>:/~i.#valu) */@:^~"1 (1:,-&(}:valu))
>> )
>>
>> au=: 0 1 4 1,:0 1 3 6
...
>> That said, I think I would prefer to transform the
>> argument so I could use p. in my derived verb.

I should be able to do this much more elegantly, but
of course this would work:

NP=: monad define
   (%. ^/~...@i.@#)&.x: (y Np)"0 i.#{.y
)

   NP au
0 0 0 1

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

Reply via email to