On Wed, Jun 13, 2012 at 11:49 AM, Roger Hui <[email protected]> wrote:
> I don't know whether the following is what you mean by "intrinsic rank".
>
> Certain (quite a few) primitives are implemented by code that "know" what
> their ranks are supposed to be and know that they are currently invoked via
> the rank operator with particular ranks.  For example, if you say  2{."1 x
> the C function that implements "take" is given the 2 and the x *in toto *and
> "know" that it's being called with rank 1*.  *You can see the effect of
> this by doing a benchmark:
>
>   take=: {.
>   x=: 50 1e5 ?@$ 0
>
>   ts '2 {."1 x'
> 1.4527e_5 1920
>   ts '2 take"1 x'
> 0.0209496 1.05082e6
>
> This is called "Integrated Rank Support" in
> http://www.jsoftware.com/papers/rank.htm .

Yes, "Integrated Rank Support" is the term I should have used.

Currently that mechanism is not available for user definitions.  But I
think it should be.

Thank you,

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

Reply via email to