On Wed, Mar 3, 2010 at 2:20 PM, R.E. Boss <[email protected]> wrote:
> No.
>
>   <oblq i.2 3 4
> |assertion failure
> |   (=<.)rnk2=:-:#$y

I explicitly left odd ranks unhandled because I had not yet
decided how I should deal with them.

That said, note that ,: will convert an odd ranked array to
an even ranked array.

So you might replace that first line with
   rnk2=: <.-:#$y

That said, note that my model of "oblique" will
be incompatible with the existing /. for higher ranked
arrays.  Given how it works, it might be desirable to
ignore trailing dimensions in y corresponding to the
monadic rank of u.

But I was just modelling the underlying mechanism, and
not providing a complete implementation.

> obl=: 1 : '(+/"1)@(#: [:i. */)@$ u/. ,'

Consider this case:

  (i.2 3 5) +/oblq@(*/) i.1 2 3

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

Reply via email to